From: Nicolas Dufresne Date: Mon, 24 Sep 2018 19:27:41 +0000 (-0400) Subject: rtph264depay: Forward the marker bit as buffer flag X-Git-Tag: 1.16.2~253 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=e4f38c986ecc570ce7d63e756d4627b084161d73;p=platform%2Fupstream%2Fgst-plugins-good.git rtph264depay: Forward the marker bit as buffer flag We have a buffer flag to represent the marker bit (when present). Forward this bit by setting the buffer flag accordingly. --- diff --git a/gst/rtp/gstrtph264depay.c b/gst/rtp/gstrtph264depay.c index afe9630..1e5f18c 100644 --- a/gst/rtp/gstrtph264depay.c +++ b/gst/rtp/gstrtph264depay.c @@ -944,6 +944,9 @@ gst_rtp_h264_depay_handle_nal (GstRtpH264Depay * rtph264depay, GstBuffer * nal, else GST_BUFFER_FLAG_SET (outbuf, GST_BUFFER_FLAG_DELTA_UNIT); + if (marker) + GST_BUFFER_FLAG_SET (outbuf, GST_BUFFER_FLAG_MARKER); + gst_rtp_base_depayload_push (depayload, outbuf); } @@ -1040,8 +1043,8 @@ gst_rtp_h264_depay_process (GstRTPBaseDepayload * depayload, GstRTPBuffer * rtp) /* at least one byte header with type */ header_len = 1; - GST_DEBUG_OBJECT (rtph264depay, "NRI %d, Type %d", nal_ref_idc, - nal_unit_type); + GST_DEBUG_OBJECT (rtph264depay, "NRI %d, Type %d %s", nal_ref_idc, + nal_unit_type, marker ? "marker" : ""); /* If FU unit was being processed, but the current nal is of a different * type. Assume that the remote payloader is buggy (didn't set the end bit