From 19becc8ea911e74b5443420a8da411444f980725 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 7 Nov 2019 16:05:27 +0100 Subject: stats, demux: log byte level stream seeks --- stream/stream.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'stream/stream.c') diff --git a/stream/stream.c b/stream/stream.c index 31a4f8fb24..7fd6700cdd 100644 --- a/stream/stream.c +++ b/stream/stream.c @@ -634,6 +634,8 @@ static bool stream_seek_unbuffered(stream_t *s, int64_t newpos) MP_VERBOSE(s, "stream level seek from %" PRId64 " to %" PRId64 "\n", s->pos, newpos); + s->total_stream_seeks++; + if (newpos > s->pos && !s->seekable) { MP_ERR(s, "Cannot seek forward in this stream\n"); return false; -- cgit v1.2.3