From c2a357c86742c28dd28a47c261c4f226b45d75ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Sat, 21 Oct 2023 21:10:55 -0400 Subject: [PATCH] rtpopusdepay: set resync flag - Set re-sync flag on output buffer when rtp had the marker flag set. Part-of: --- subprojects/gst-plugins-good/gst/rtp/gstrtpopusdepay.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/subprojects/gst-plugins-good/gst/rtp/gstrtpopusdepay.c b/subprojects/gst-plugins-good/gst/rtp/gstrtpopusdepay.c index 220f5c0ae7..64e0737169 100644 --- a/subprojects/gst-plugins-good/gst/rtp/gstrtpopusdepay.c +++ b/subprojects/gst-plugins-good/gst/rtp/gstrtpopusdepay.c @@ -257,6 +257,9 @@ gst_rtp_opus_depay_process (GstRTPBaseDepayload * depayload, 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); return outbuf;