stream: log positions on seek failures

This commit is contained in:
wm4 2019-01-05 14:43:39 +01:00
parent d23336089c
commit 2bf1862bc1
1 changed files with 2 additions and 1 deletions

View File

@ -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);