mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1124>
This commit is contained in:
parent
9e5b6830cd
commit
c272d0bfcd
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue