Stats: update counter only if video really sent

This commit is contained in:
Martin Pulec
2014-12-07 16:07:27 +01:00
parent 66a4365bf8
commit 10ace4fb83

View File

@@ -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: