mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
rtph261depay: Let the base class push the buffer so it can deal with the flow return
This commit is contained in:
parent
b653fae8c9
commit
e0204938a8
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue