summaryrefslogtreecommitdiffstats
path: root/demux
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-10-17 18:18:20 +0200
committerwm4 <wm4@nowhere>2014-10-17 18:18:20 +0200
commita0acb6eaa7bba1abf0ab1c21e3661c5c1fff4481 (patch)
treed71fcf650644688fa0e03f5e45618c97841f7264 /demux
parent01e1d0948d69a1bf6d830de5cae54bd4c1cdab47 (diff)
downloadmpv-a0acb6eaa7bba1abf0ab1c21e3661c5c1fff4481.tar.bz2
mpv-a0acb6eaa7bba1abf0ab1c21e3661c5c1fff4481.tar.xz
demux: print a warning if stream is not seekable
Diffstat (limited to 'demux')
-rw-r--r--demux/demux.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/demux/demux.c b/demux/demux.c
index a42fef0925..6f226d8737 100644
--- a/demux/demux.c
+++ b/demux/demux.c
@@ -845,10 +845,11 @@ static struct demuxer *open_given_type(struct mpv_global *global,
in->d_thread->filetype, desc->desc);
else
mp_verbose(log, "Detected file format: %s\n", desc->desc);
+ if (!in->d_thread->seekable)
+ mp_warn(log, "Stream is not seekable.\n");
// Pretend we can seek if we can't seek, but there's a cache.
if (!in->d_thread->seekable && stream->uncached_stream) {
- mp_warn(log,
- "File is not seekable, but there's a cache: enabling seeking.\n");
+ mp_warn(log, "Enabling seeking because stream cache is active.\n");
in->d_thread->seekable = true;
}
demux_changed(in->d_thread, DEMUX_EVENT_ALL);