From 775d81609627e4c6e091ae3761cdb1235f789276 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 5 Aug 2015 23:38:23 +0200 Subject: demux: remove options to control minimum packet queue size Remove --demuxer-readahead-packets and --demuxer-readahead-bytes. These were a bit useless. They could force a minimum packet queue size, but controlling the queue size with --demuxer-readahead-secs is much nicer. It's fairly certain nobody ever used these options. --- demux/demux.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'demux/demux.c') diff --git a/demux/demux.c b/demux/demux.c index ba2678466f..55dfd259da 100644 --- a/demux/demux.c +++ b/demux/demux.c @@ -112,8 +112,6 @@ struct demux_internal { bool idle; bool autoselect; double min_secs; - int min_packs; - int min_bytes; bool tracks_switched; // thread needs to inform demuxer of this @@ -412,8 +410,6 @@ static bool read_packet(struct demux_internal *in) pthread_cond_signal(&in->wakeup); return false; } - if (packs < in->min_packs && bytes < in->min_bytes) - read_more |= active; if (!read_more) return false; @@ -961,8 +957,6 @@ static struct demuxer *open_given_type(struct mpv_global *global, .d_buffer = talloc(demuxer, struct demuxer), .d_user = demuxer, .min_secs = demuxer->opts->demuxer_min_secs, - .min_packs = demuxer->opts->demuxer_min_packs, - .min_bytes = demuxer->opts->demuxer_min_bytes, }; pthread_mutex_init(&in->lock, NULL); pthread_cond_init(&in->wakeup, NULL); -- cgit v1.2.3