From 19a38c4b1f8273d430f8a4d6a636754aedb8c531 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 11 Oct 2018 06:05:09 +0200 Subject: 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. --- stream/stream.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'stream/stream.c') 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); -- cgit v1.2.3