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