mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-19 17:49:14 +00:00
UI: Fix case where invalid bitrate would be shown
Fixes a case where an astronomically large bitrate could be shown unintentionally.
This commit is contained in:
parent
605590606f
commit
5137f8b6c0
|
@ -114,6 +114,8 @@ void OBSBasicStatusBar::UpdateBandwidth()
|
|||
uint64_t bytesSent = obs_output_get_total_bytes(streamOutput);
|
||||
uint64_t bytesSentTime = os_gettime_ns();
|
||||
|
||||
if (bytesSent < lastBytesSent)
|
||||
bytesSent = 0;
|
||||
if (bytesSent == 0)
|
||||
lastBytesSent = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue