diff options
author | wm4 <wm4@nowhere> | 2019-01-05 08:49:31 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-09-19 20:37:04 +0200 |
commit | ebf183eeec388d87a19415ee01970b21b6ef6832 (patch) | |
tree | 7b3d5ced6d0d590c46679eafa6c4b42dbb16ee27 /demux/demux_lavf.c | |
parent | 27a09b42ed04ecd73215ab73ac146b287c3fd9f6 (diff) | |
download | mpv-ebf183eeec388d87a19415ee01970b21b6ef6832.tar.bz2 mpv-ebf183eeec388d87a19415ee01970b21b6ef6832.tar.xz |
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.
Diffstat (limited to 'demux/demux_lavf.c')
-rw-r--r-- | demux/demux_lavf.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |