summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2019-03-22 02:08:01 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2019-03-27 18:54:27 -0400
commit8bf074f21e9774116cbcaacedaed670157401f81 (patch)
tree155b3d625224bf951f11d6b36aefed0a1ba511b1 /gst
parentc840328664da44b5fa78a39790d7282302549a9f (diff)
downloadgstreamer-plugins-good-8bf074f21e9774116cbcaacedaed670157401f81.tar.gz
rtpreddec: Add some more debug prints
Diffstat (limited to 'gst')
-rw-r--r--gst/rtp/gstrtpreddec.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gst/rtp/gstrtpreddec.c b/gst/rtp/gstrtpreddec.c
index bc9c0eab5..7d089eac8 100644
--- a/gst/rtp/gstrtpreddec.c
+++ b/gst/rtp/gstrtpreddec.c
@@ -318,11 +318,18 @@ gst_rtp_red_create_from_redundant_block (GstRtpRedDec * self,
guint16 lost_seq = 0;
if (gst_red_history_lost_seq_num_for_timestamp (self, lost_timestamp,
&lost_seq)) {
+ GST_LOG_OBJECT (self, "Recovering from RED packet pt=%u ts=%u seq=%u"
+ " len=%u present", rtp_red_block_get_payload_type (red_hdr),
+ lost_timestamp, lost_seq, rtp_red_block_get_payload_length (red_hdr));
ret =
gst_rtp_red_create_packet (self, red_rtp, FALSE,
rtp_red_block_get_payload_type (red_hdr), lost_seq, lost_timestamp,
*red_payload_offset, rtp_red_block_get_payload_length (red_hdr));
GST_BUFFER_FLAG_SET (ret, GST_RTP_BUFFER_FLAG_REDUNDANT);
+ } else {
+ GST_LOG_OBJECT (self, "Ignore RED packet pt=%u ts=%u len=%u because already"
+ " present", rtp_red_block_get_payload_type (red_hdr), lost_timestamp,
+ rtp_red_block_get_payload_length (red_hdr));
}
*red_hdr_offset += rtp_red_block_header_get_length (TRUE);
@@ -342,6 +349,11 @@ gst_rtp_red_create_from_main_block (GstRtpRedDec * self,
gst_rtp_buffer_get_timestamp (red_rtp),
*red_payload_offset, -1);
*red_payload_offset = gst_rtp_buffer_get_payload_len (red_rtp);
+ GST_LOG_OBJECT (self, "Extracting main payload from RED pt=%u seq=%u ts=%u"
+ " marker=%u", rtp_red_block_get_payload_type (payload + red_hdr_offset),
+ gst_rtp_buffer_get_seq (red_rtp), gst_rtp_buffer_get_timestamp (red_rtp),
+ gst_rtp_buffer_get_marker (red_rtp));
+
return ret;
}