From: Olivier CrĂȘte Date: Fri, 13 Dec 2013 21:08:35 +0000 (-0500) Subject: rtpsession: Only count nacks when a nack packet is received X-Git-Tag: 1.3.1~488 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d715010d7834c46ffdbb36d938f1056c62d1b704;p=platform%2Fupstream%2Fgst-plugins-good.git rtpsession: Only count nacks when a nack packet is received Not when any RTCP feedback packet is. --- diff --git a/gst/rtpmanager/rtpsession.c b/gst/rtpmanager/rtpsession.c index f2db3e7..2449f5d 100644 --- a/gst/rtpmanager/rtpsession.c +++ b/gst/rtpmanager/rtpsession.c @@ -2354,6 +2354,8 @@ rtp_session_process_nack (RTPSession * sess, guint32 sender_ssrc, guint32 media_ssrc, guint8 * fci_data, guint fci_length, GstClockTime current_time) { + sess->stats.nacks_received++; + if (!sess->callbacks.notify_nack) return; @@ -2396,8 +2398,6 @@ rtp_session_process_feedback (RTPSession * sess, GstRTCPPacket * packet, GST_DEBUG ("received feedback %d:%d from %08X about %08X with FCI of " "length %d", type, fbtype, sender_ssrc, media_ssrc, fci_length); - sess->stats.nacks_received++; - if (g_signal_has_handler_pending (sess, rtp_session_signals[SIGNAL_ON_FEEDBACK_RTCP], 0, TRUE)) { GstBuffer *fci_buffer = NULL;