mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-09 05:38:58 +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,
|
guint32 media_ssrc, guint8 * fci_data, guint fci_length,
|
||||||
GstClockTime current_time)
|
GstClockTime current_time)
|
||||||
{
|
{
|
||||||
|
sess->stats.nacks_received++;
|
||||||
|
|
||||||
if (!sess->callbacks.notify_nack)
|
if (!sess->callbacks.notify_nack)
|
||||||
return;
|
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 "
|
GST_DEBUG ("received feedback %d:%d from %08X about %08X with FCI of "
|
||||||
"length %d", type, fbtype, sender_ssrc, media_ssrc, fci_length);
|
"length %d", type, fbtype, sender_ssrc, media_ssrc, fci_length);
|
||||||
|
|
||||||
sess->stats.nacks_received++;
|
|
||||||
|
|
||||||
if (g_signal_has_handler_pending (sess,
|
if (g_signal_has_handler_pending (sess,
|
||||||
rtp_session_signals[SIGNAL_ON_FEEDBACK_RTCP], 0, TRUE)) {
|
rtp_session_signals[SIGNAL_ON_FEEDBACK_RTCP], 0, TRUE)) {
|
||||||
GstBuffer *fci_buffer = NULL;
|
GstBuffer *fci_buffer = NULL;
|
||||||
|
|
Loading…
Reference in a new issue