mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 14:40:22 +00:00
Stats: update counter only if video really sent
This commit is contained in:
@@ -212,14 +212,13 @@ void *video_rxtx::sender_loop() {
|
||||
|
||||
if (!m_paused) {
|
||||
send_frame(tx_frame);
|
||||
}
|
||||
|
||||
rtp_video_rxtx *rtp_rxtx = dynamic_cast<rtp_video_rxtx *>(this);
|
||||
if (rtp_rxtx) {
|
||||
stats_update_int(stat_data_sent,
|
||||
rtp_get_bytes_sent(rtp_rxtx->m_network_devices[0]));
|
||||
rtp_video_rxtx *rtp_rxtx = dynamic_cast<rtp_video_rxtx *>(this);
|
||||
if (rtp_rxtx) {
|
||||
stats_update_int(stat_data_sent,
|
||||
rtp_get_bytes_sent(rtp_rxtx->m_network_devices[0]));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
exit:
|
||||
|
||||
Reference in New Issue
Block a user