From f12a8d9b8f493bc09c3bb7abd8447bd6547ef9f7 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 5 Jan 2019 14:43:39 +0100 Subject: [PATCH] stream: log positions on seek failures --- stream/stream.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stream/stream.c b/stream/stream.c index 33dc505bc1..1f5c728684 100644 --- a/stream/stream.c +++ b/stream/stream.c @@ -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);