From 2bf1862bc1d53b7aa60a229c4a8ae0d00df4b5c8 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 21ec1d3488..b99e7419ae 100644 --- a/stream/stream.c +++ b/stream/stream.c @@ -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);