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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1124>
GST_BUFFER_DURATION (outbuf) = duration;
if (self->marker) {
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;
}
GST_BUFFER_FLAG_SET (outbuf, GST_BUFFER_FLAG_MARKER);
self->marker = FALSE;
}