rtpopusdepay: set resync flag

- Set re-sync flag on output buffer when rtp had the marker flag set.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5529>
This commit is contained in:
Olivier Crête 2023-10-21 21:10:55 -04:00 committed by GStreamer Marge Bot
parent 43ce583460
commit c2a357c867

View file

@ -257,6 +257,9 @@ gst_rtp_opus_depay_process (GstRTPBaseDepayload * depayload,
outbuf = gst_rtp_buffer_get_payload_buffer (rtp_buffer); outbuf = gst_rtp_buffer_get_payload_buffer (rtp_buffer);
if (gst_rtp_buffer_get_marker (rtp_buffer))
GST_BUFFER_FLAG_SET (outbuf, GST_BUFFER_FLAG_RESYNC);
gst_rtp_drop_non_audio_meta (depayload, outbuf); gst_rtp_drop_non_audio_meta (depayload, outbuf);
return outbuf; return outbuf;