diff options
author | wm4 <wm4@nowhere> | 2018-09-08 23:51:29 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-09-19 20:37:04 +0200 |
commit | adbd035b50aabdef1f401f51a8f1d06d6f3d79d3 (patch) | |
tree | 452c168f7fd1af349ca91cf2b347bbda7870eb34 /demux/demux.c | |
parent | cb51dfa76a8760fc0d67de9ee90f692ee02fc247 (diff) | |
download | mpv-adbd035b50aabdef1f401f51a8f1d06d6f3d79d3.tar.bz2 mpv-adbd035b50aabdef1f401f51a8f1d06d6f3d79d3.tar.xz |
demux: autoselection is gone
Was used by DVD, I think.
Diffstat (limited to 'demux/demux.c')
-rw-r--r-- | demux/demux.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/demux/demux.c b/demux/demux.c index 94f9aec856..4c9e462c5d 100644 --- a/demux/demux.c +++ b/demux/demux.c @@ -170,7 +170,6 @@ struct demux_internal { bool last_eof; // last actual global EOF status bool eof; // whether we're in EOF state (reset for retry) bool idle; - bool autoselect; double min_secs; size_t max_bytes; size_t max_bytes_bw; @@ -853,7 +852,6 @@ static void demux_add_sh_stream_locked(struct demux_internal *in, .sh = sh, .type = sh->type, .index = sh->index, - .selected = in->autoselect, .global_correct_dts = true, .global_correct_pos = true, }; @@ -2943,12 +2941,6 @@ void demuxer_select_track(struct demuxer *demuxer, struct sh_stream *stream, pthread_mutex_unlock(&in->lock); } -void demux_set_stream_autoselect(struct demuxer *demuxer, bool autoselect) -{ - assert(!demuxer->in->threading); // laziness - demuxer->in->autoselect = autoselect; -} - // This is for demuxer implementations only. demuxer_select_track() sets the // logical state, while this function returns the actual state (in case the // demuxer attempts to cache even unselected packets for track switching - this |