diff options
author | Clément Bœsch <ubitux@gmail.com> | 2010-11-11 16:36:09 +0100 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-11-11 17:53:44 +0200 |
commit | e7d3e63a3f97b17f20780914b90132b3a1f72909 (patch) | |
tree | bcbc524608b21e77fcf57946d5e12a97df7bcee0 /libmpdemux | |
parent | 449484179f05ed6178663cab7b565eff7c884798 (diff) |
options: move -cache-min and cache-seek-min to option struct
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/demuxer.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libmpdemux/demuxer.c b/libmpdemux/demuxer.c index 553da281b0..4d8e64e7c8 100644 --- a/libmpdemux/demuxer.c +++ b/libmpdemux/demuxer.c @@ -1068,9 +1068,6 @@ static struct demuxer *demux_open_stream(struct MPOpts *opts, return demuxer; } -extern float stream_cache_min_percent; -extern float stream_cache_seek_min_percent; - demuxer_t *demux_open(struct MPOpts *opts, stream_t *vs, int file_format, int audio_id, int video_id, int dvdsub_id, char *filename) @@ -1117,9 +1114,9 @@ demuxer_t *demux_open(struct MPOpts *opts, stream_t *vs, int file_format, if (!stream_enable_cache (as, opts->audio_stream_cache * 1024, opts->audio_stream_cache * 1024 * - (stream_cache_min_percent / 100.0), + (opts->stream_cache_min_percent / 100.0), opts->audio_stream_cache * 1024 * - (stream_cache_seek_min_percent / 100.0))) { + (opts->stream_cache_seek_min_percent / 100.0))) { free_stream(as); mp_msg(MSGT_DEMUXER, MSGL_ERR, "Can't enable audio stream cache\n"); |