stream: log positions on seek failures

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

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