summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-10-11 06:05:09 +0200
committerAnton Kindestam <antonki@kth.se>2018-12-06 10:33:28 +0100
commit19a38c4b1f8273d430f8a4d6a636754aedb8c531 (patch)
treedbc45e9578de973be3ecf6d0c485c2cd016ff282 /stream
parent9b10869a614dd055c6f68a1d0750899f4411d638 (diff)
downloadmpv-19a38c4b1f8273d430f8a4d6a636754aedb8c531.tar.bz2
mpv-19a38c4b1f8273d430f8a4d6a636754aedb8c531.tar.xz
stream: silence failed seek message on termination
Seems to happen often with ytdl pseudo-DASH streams, so whatever. I couldn't reproduce it and check what triggers it, I just remember seeing the error message and found it annoying.
Diffstat (limited to 'stream')
-rw-r--r--stream/stream.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/stream/stream.c b/stream/stream.c
index 1ec1c9167b..423a076155 100644
--- a/stream/stream.c
+++ b/stream/stream.c
@@ -490,7 +490,8 @@ static bool stream_seek_unbuffered(stream_t *s, int64_t newpos)
return false;
}
if (s->seek(s, newpos) <= 0) {
- MP_ERR(s, "Seek failed\n");
+ int level = mp_cancel_test(s->cancel) ? MSGL_V : MSGL_ERR;
+ MP_MSG(s, level, "Seek failed\n");
return false;
}
stream_drop_buffers(s);