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.
This commit is contained in:
wm4 2018-10-11 06:05:09 +02:00 committed by Anton Kindestam
parent 9b10869a61
commit 19a38c4b1f
1 changed files with 2 additions and 1 deletions

View File

@ -490,7 +490,8 @@ static bool stream_seek_unbuffered(stream_t *s, int64_t newpos)
return false; return false;
} }
if (s->seek(s, newpos) <= 0) { 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; return false;
} }
stream_drop_buffers(s); stream_drop_buffers(s);