From: Luis de Bethencourt Date: Sat, 15 Aug 2015 15:22:20 +0000 (+0100) Subject: rtph265depay: make sure we call handle_nal for each NAL X-Git-Tag: 1.6.0~162 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=51dfa3b135978bf523348209b0fdf9c21e252243;p=platform%2Fupstream%2Fgst-plugins-bad.git rtph265depay: make sure we call handle_nal for each NAL Call handle_nal for each NAL in the STAP-A RTP packet. This makes sure we correctly extract the SPS and PPS. https://bugzilla.gnome.org/show_bug.cgi?id=730999 --- diff --git a/gst/rtp/gstrtph265depay.c b/gst/rtp/gstrtph265depay.c index 9718d58..bfc2e13 100644 --- a/gst/rtp/gstrtph265depay.c +++ b/gst/rtp/gstrtph265depay.c @@ -1311,7 +1311,11 @@ gst_rtp_h265_depay_process (GstRTPBaseDepayload * depayload, GstRTPBuffer * rtp) gst_rtp_copy_meta (GST_ELEMENT_CAST (rtph265depay), outbuf, buf, g_quark_from_static_string (GST_META_TAG_VIDEO_STR)); - gst_adapter_push (rtph265depay->adapter, outbuf); + outbuf = + gst_rtp_h265_depay_handle_nal (rtph265depay, outbuf, timestamp, + marker); + if (outbuf) + gst_adapter_push (rtph265depay->adapter, outbuf); payload += nalu_size; payload_len -= nalu_size;