diff --git a/gst/rtp/gstrtph264depay.c b/gst/rtp/gstrtph264depay.c index 430650e7c6..056724c670 100644 --- a/gst/rtp/gstrtph264depay.c +++ b/gst/rtp/gstrtph264depay.c @@ -1055,12 +1055,8 @@ gst_rtp_h264_depay_process (GstRTPBaseDepayload * depayload, GstRTPBuffer * rtp) } outsize = gst_adapter_available (rtph264depay->adapter); - if (outsize > 0) { + if (outsize > 0) outbuf = gst_adapter_take_buffer (rtph264depay->adapter, outsize); - outbuf = - gst_rtp_h264_depay_handle_nal (rtph264depay, outbuf, timestamp, - marker); - } break; } case 26: diff --git a/gst/rtp/gstrtph265depay.c b/gst/rtp/gstrtph265depay.c index 97353afcbf..f0dcb4bb75 100644 --- a/gst/rtp/gstrtph265depay.c +++ b/gst/rtp/gstrtph265depay.c @@ -1256,12 +1256,8 @@ gst_rtp_h265_depay_process (GstRTPBaseDepayload * depayload, GstRTPBuffer * rtp) } outsize = gst_adapter_available (rtph265depay->adapter); - if (outsize > 0) { + if (outsize > 0) outbuf = gst_adapter_take_buffer (rtph265depay->adapter, outsize); - outbuf = - gst_rtp_h265_depay_handle_nal (rtph265depay, outbuf, timestamp, - marker); - } break; } case 49: