diff options
Diffstat (limited to 'gst/rtpmanager/rtpstats.c')
-rw-r--r-- | gst/rtpmanager/rtpstats.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/rtpmanager/rtpstats.c b/gst/rtpmanager/rtpstats.c index b9076eac..456ed15f 100644 --- a/gst/rtpmanager/rtpstats.c +++ b/gst/rtpmanager/rtpstats.c @@ -65,7 +65,7 @@ rtp_stats_calculate_rtcp_interval (RTPSessionStats * stats, gboolean sender) GST_DEBUG ("senders: %f, receivers %f, avg_rtcp %f, sfraction %f", senders, receivers, avg_rtcp, sfraction); - if (sfraction <= stats->sender_fraction) { + if (senders > 0 && sfraction <= stats->sender_fraction) { if (sender) { interval = (avg_rtcp * senders) / (stats->sender_fraction * |