mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
rtpsession: Only count nacks when a nack packet is received
Not when any RTCP feedback packet is.
This commit is contained in:
parent
dc845c1899
commit
d715010d78
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue