From ebf183eeec388d87a19415ee01970b21b6ef6832 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 5 Jan 2019 08:49:31 +0100 Subject: demux: slightly cleanup network speed reporting It was an ugly hack, and the next commit will make it even uglier. Slightly reduce the ugliness to prevent death of too many brain cells, though it's still an ugly hack. The cleanup is really minor, but I guess the following commit would be much worse otherwise. In particular, this commit checks accesses (instead of having a public field with evil access rules), which should avoid misunderstandings and incorrect use. Strictly speaking, the added field is redundant, but the next commit complicates it a bit. --- demux/demux_lavf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'demux/demux_lavf.c') diff --git a/demux/demux_lavf.c b/demux/demux_lavf.c index c53c00a8c3..a021542500 100644 --- a/demux/demux_lavf.c +++ b/demux/demux_lavf.c @@ -235,7 +235,7 @@ static void update_read_stats(struct demuxer *demuxer) int64_t cur = nest->id->bytes_read; int64_t new = cur - nest->last_bytes; nest->last_bytes = cur; - demuxer->total_unbuffered_read_bytes += new; + demux_report_unbuffered_read_bytes(demuxer, new); } } -- cgit v1.2.3