diff --git a/subprojects/gst-plugins-good/gst/rtpmanager/gstrtprtxsend.c b/subprojects/gst-plugins-good/gst/rtpmanager/gstrtprtxsend.c index adad57c0fc..5e92e25ee9 100644 --- a/subprojects/gst-plugins-good/gst/rtpmanager/gstrtprtxsend.c +++ b/subprojects/gst-plugins-good/gst/rtpmanager/gstrtprtxsend.c @@ -734,6 +734,9 @@ gst_rtp_rtx_buffer_new (GstRtpRtxSend * rtx, GstBuffer * buffer) /* Copy over timestamps */ gst_buffer_copy_into (new_buffer, buffer, GST_BUFFER_COPY_TIMESTAMPS, 0, -1); + /* mark this is a RETRANSMISSION buffer */ + GST_BUFFER_FLAG_SET (new_buffer, GST_RTP_BUFFER_FLAG_RETRANSMISSION); + return new_buffer; } diff --git a/subprojects/gst-plugins-good/tests/check/elements/rtprtx.c b/subprojects/gst-plugins-good/tests/check/elements/rtprtx.c index 6206574f13..4eec054d3c 100644 --- a/subprojects/gst-plugins-good/tests/check/elements/rtprtx.c +++ b/subprojects/gst-plugins-good/tests/check/elements/rtprtx.c @@ -33,6 +33,8 @@ } else { \ fail_unless_equals_int (GST_READ_UINT16_BE (gst_rtp_buffer_get_payload \ (&_rtp)), expected_seqnum); \ + fail_unless (GST_BUFFER_FLAG_IS_SET (buf, \ + GST_RTP_BUFFER_FLAG_RETRANSMISSION)); \ } \ gst_rtp_buffer_unmap (&_rtp); \ } G_STMT_END