diff options
author | wm4 <wm4@nowhere> | 2015-08-05 23:38:23 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-08-05 23:38:23 +0200 |
commit | 775d81609627e4c6e091ae3761cdb1235f789276 (patch) | |
tree | e2d37ffd47f5eaacfee729024efa0cc85b6c0eb4 /demux | |
parent | 410553aaaacf9762dca00410369010fedf41d826 (diff) | |
download | mpv-775d81609627e4c6e091ae3761cdb1235f789276.tar.bz2 mpv-775d81609627e4c6e091ae3761cdb1235f789276.tar.xz |
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.
Diffstat (limited to 'demux')
-rw-r--r-- | demux/demux.c | 6 |
1 files changed, 0 insertions, 6 deletions
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); |