From a0acb6eaa7bba1abf0ab1c21e3661c5c1fff4481 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 17 Oct 2014 18:18:20 +0200 Subject: demux: print a warning if stream is not seekable --- demux/demux.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'demux') 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); -- cgit v1.2.3