mirror of https://github.com/mpv-player/mpv
stream: log positions on seek failures
This commit is contained in:
parent
d23336089c
commit
2bf1862bc1
|
@ -526,7 +526,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);
|
||||
|
|
Loading…
Reference in New Issue