From 73858bb0ccac91b6a529c8dd4b825f47aa28c4b7 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 21 Jan 2017 17:19:01 +0100 Subject: player: remove --stream-capture option/property This was excessively useless, and I want my time back that was needed to explain users why they don't want to use it. It captured the byte stream only, and even for types of streams it was designed for (like transport streams), it was rather questionable. As part of the removal, un-inline demux_run_on_thread() (which has only 1 call-site now), and sort of reimplement --stream-dump to write the data directly instead of using the removed capture code. (--stream-dump is also very useless, and I struggled coming up with an explanation for it in the manpage.) --- demux/demux.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'demux/demux.h') diff --git a/demux/demux.h b/demux/demux.h index f9d98e5cef..44bd2b9766 100644 --- a/demux/demux.h +++ b/demux/demux.h @@ -165,7 +165,6 @@ struct demuxer_params { bool initial_readahead; // -- demux_open_url() only int stream_flags; - bool allow_capture; bool disable_cache; // result bool demuxer_failed; @@ -288,8 +287,6 @@ double demuxer_get_time_length(struct demuxer *demuxer); int demux_stream_control(demuxer_t *demuxer, int ctrl, void *arg); -void demux_run_on_thread(struct demuxer *demuxer, void (*fn)(void *), void *ctx); - void demux_changed(demuxer_t *demuxer, int events); void demux_update(demuxer_t *demuxer); -- cgit v1.2.3