1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-20 02:09:52 +00:00

stream: log positions on seek failures

This commit is contained in:
wm4 2019-01-05 14:43:39 +01:00
parent 8ce2594c83
commit f12a8d9b8f

View File

@ -497,7 +497,8 @@ static bool stream_seek_unbuffered(stream_t *s, int64_t newpos)
}
if (s->seek(s, newpos) <= 0) {
int level = mp_cancel_test(s->cancel) ? MSGL_V : MSGL_ERR;
MP_MSG(s, level, "Seek failed\n");
MP_MSG(s, level, "Seek failed (to %lld, size %lld)\n",
(long long)newpos, (long long)stream_get_size(s));
return false;
}
stream_drop_buffers(s);