summaryrefslogtreecommitdiffstats
path: root/options/options.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-07-08 22:04:35 +0200
committerwm4 <wm4@nowhere>2015-07-08 22:04:35 +0200
commit23220db92443a5748cb034edf29b4c3b428bee5a (patch)
treefc49c36cf2a3b828a06d5dbed7a3136aa6e3e02f /options/options.h
parent15581f2209898bdd1747d4a32f57a00ba5098fdd (diff)
downloadmpv-23220db92443a5748cb034edf29b4c3b428bee5a.tar.bz2
mpv-23220db92443a5748cb034edf29b4c3b428bee5a.tar.xz
player: disable seeking even if the cache is enabled
Until now, if a stream wasn't seekable, but the stream cache was enabled (--cache), we've enabled seeking anyway. The idea was that at least short seeks would typically fall within the cache. And if not, the user was out of luck and terrible things happened. In other words, it was unreliable. Be stricter about it and remove this behavior. Effectively, this will for example disable seeking in piped data. Instead of trying to be clever, add an --force-seekable option, which will always enable seeking if the user really wants it.
Diffstat (limited to 'options/options.h')
-rw-r--r--options/options.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/options/options.h b/options/options.h
index 9d211390e0..b43e28a06f 100644
--- a/options/options.h
+++ b/options/options.h
@@ -199,6 +199,7 @@ typedef struct MPOpts {
double demuxer_min_secs;
char *audio_demuxer_name;
char *sub_demuxer_name;
+ int force_seekable;
double demuxer_min_secs_cache;
int cache_pausing;