From c272d0bfcd173c4727992ef7b812b3e1c9da0b7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Fri, 10 Sep 2021 18:03:55 -0400 Subject: [PATCH] rtopuspay: Set marker bit inside RTP packet too At the end of a talk spurt, not only set the marker flag on the GstBuffer, but also set the bit inside the RTP header as recommended by the RFC. Part-of: --- subprojects/gst-plugins-good/gst/rtp/gstrtpopuspay.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/subprojects/gst-plugins-good/gst/rtp/gstrtpopuspay.c b/subprojects/gst-plugins-good/gst/rtp/gstrtpopuspay.c index 0bcdc6a948..f08b0f5296 100644 --- a/subprojects/gst-plugins-good/gst/rtp/gstrtpopuspay.c +++ b/subprojects/gst-plugins-good/gst/rtp/gstrtpopuspay.c @@ -353,6 +353,12 @@ gst_rtp_opus_pay_handle_buffer (GstRTPBasePayload * basepayload, GST_BUFFER_DURATION (outbuf) = duration; if (self->marker) { + GstRTPBuffer rtp = GST_RTP_BUFFER_INIT; + + gst_rtp_buffer_map (outbuf, GST_MAP_READWRITE, &rtp); + gst_rtp_buffer_set_marker (&rtp, TRUE); + gst_rtp_buffer_unmap (&rtp); + GST_BUFFER_FLAG_SET (outbuf, GST_BUFFER_FLAG_MARKER); self->marker = FALSE; }