From e0204938a800bfdd52802018a688706ba0b96ced Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 3 Jul 2015 14:03:05 +0200 Subject: [PATCH] rtph261depay: Let the base class push the buffer so it can deal with the flow return --- gst/rtp/gstrtph261depay.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gst/rtp/gstrtph261depay.c b/gst/rtp/gstrtph261depay.c index d0c6947..91f7418 100644 --- a/gst/rtp/gstrtph261depay.c +++ b/gst/rtp/gstrtph261depay.c @@ -62,7 +62,7 @@ static GstBuffer * gst_rtp_h261_depay_process (GstRTPBaseDepayload * depayload, GstBuffer * buf) { GstRtpH261Depay *depay; - GstBuffer *outbuf; + GstBuffer *outbuf = NULL; gint payload_len; guint8 *payload; const guint header_len = GST_RTP_H261_PAYLOAD_HEADER_LEN; @@ -161,7 +161,6 @@ skip: GST_BUFFER_FLAG_SET (outbuf, GST_BUFFER_FLAG_DELTA_UNIT); GST_DEBUG_OBJECT (depay, "Pushing out a buffer of %u bytes", avail); - gst_rtp_base_depayload_push (depayload, outbuf); depay->start = FALSE; } else { depay->start = TRUE; @@ -169,7 +168,7 @@ skip: } gst_rtp_buffer_unmap (&rtp); - return NULL; + return outbuf; } static gboolean -- 2.7.4