diff options
author | wm4 <wm4@nowhere> | 2019-01-05 14:43:39 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-09-19 20:37:04 +0200 |
commit | 2bf1862bc1d53b7aa60a229c4a8ae0d00df4b5c8 (patch) | |
tree | 7e5a951bf1a1c7aafd612527aea4d971a812ec18 | |
parent | d23336089c905c0ab2efa6c36f70b50e1694a420 (diff) | |
download | mpv-2bf1862bc1d53b7aa60a229c4a8ae0d00df4b5c8.tar.bz2 mpv-2bf1862bc1d53b7aa60a229c4a8ae0d00df4b5c8.tar.xz |
stream: log positions on seek failures
-rw-r--r-- | stream/stream.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |