rtxreceive: Put debug output for retransmission requests at the right place
authorSebastian Dröge <sebastian@centricular.com>
Wed, 22 Apr 2015 17:29:34 +0000 (19:29 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 22 Apr 2015 17:51:18 +0000 (19:51 +0200)
Before it was only ever printed once for every time a ssrc was associated with
a specific stream.

gst/rtpmanager/gstrtprtxreceive.c

index 6a6e8ac..898279b 100644 (file)
@@ -389,17 +389,19 @@ gst_rtp_rtx_receive_src_event (GstPad * pad, GstObject * parent,
           retransmit:
             /* the request has not been already considered
              * insert it for the first time */
-            GST_DEBUG_OBJECT (rtx,
-                "packet number %" G_GUINT32_FORMAT " of master stream %"
-                G_GUINT32_FORMAT " needs to be retransmited", seqnum, ssrc);
             g_hash_table_insert (rtx->seqnum_ssrc1_map,
                 GUINT_TO_POINTER (seqnum),
                 ssrc_assoc_new (ssrc, rtx->last_time));
           }
         }
 
+        GST_DEBUG_OBJECT (rtx,
+            "packet number %" G_GUINT32_FORMAT " of master stream %"
+            G_GUINT32_FORMAT " needs to be retransmitted", seqnum, ssrc);
+
         GST_OBJECT_UNLOCK (rtx);
       }
+
       /* Transfer event upstream so that the request can acutally by translated
        * through gstrtpsession through the network */
       res = gst_pad_event_default (pad, parent, event);