From 68dfe934630308f567f78cd3a3a33f0f2ccc08cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 22 Apr 2015 19:29:34 +0200 Subject: [PATCH] rtxreceive: Put debug output for retransmission requests at the right place Before it was only ever printed once for every time a ssrc was associated with a specific stream. --- gst/rtpmanager/gstrtprtxreceive.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gst/rtpmanager/gstrtprtxreceive.c b/gst/rtpmanager/gstrtprtxreceive.c index 6a6e8ac6d8..898279b703 100644 --- a/gst/rtpmanager/gstrtprtxreceive.c +++ b/gst/rtpmanager/gstrtprtxreceive.c @@ -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);