mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 22:16:22 +00:00
libs/gst/base/gstbasetransform.c: Don't push the buffer if it's empty.
Original commit message from CVS: * libs/gst/base/gstbasetransform.c: (gst_base_transform_chain): Don't push the buffer if it's empty. Closes #363095
This commit is contained in:
parent
9bece70bf2
commit
8171460bdf
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2006-10-25 Edward Hervey <edward@fluendo.com>
|
||||
|
||||
* libs/gst/base/gstbasetransform.c: (gst_base_transform_chain):
|
||||
Don't push the buffer if it's empty.
|
||||
Closes #363095
|
||||
|
||||
2006-10-24 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* gst/gstevent.h:
|
||||
|
|
|
@ -1544,7 +1544,8 @@ gst_base_transform_chain (GstPad * pad, GstBuffer * buffer)
|
|||
|
||||
/* outbuf can be NULL, this means a dropped buffer */
|
||||
if (outbuf != NULL) {
|
||||
if (ret == GST_FLOW_OK)
|
||||
/* if output buffer is empty, we don't push it out */
|
||||
if ((ret == GST_FLOW_OK) && (GST_BUFFER_SIZE (outbuf) > 0))
|
||||
ret = gst_pad_push (trans->srcpad, outbuf);
|
||||
else
|
||||
gst_buffer_unref (outbuf);
|
||||
|
|
Loading…
Reference in a new issue