ext/libvisual/visual.c: When pad_alloc returns a GstFlowReturn other than GST_FLOW_OK...
authorJan Schmidt <thaytan@mad.scientist.com>
Fri, 27 Jan 2006 17:00:09 +0000 (17:00 +0000)
committerJan Schmidt <thaytan@mad.scientist.com>
Fri, 27 Jan 2006 17:00:09 +0000 (17:00 +0000)
Original commit message from CVS:
* ext/libvisual/visual.c: (get_buffer):
When pad_alloc returns a GstFlowReturn other
than GST_FLOW_OK, make sure it is passed upstream.

ChangeLog
ext/libvisual/visual.c

index 23c7796..f2f14dd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2006-01-27  Jan Schmidt  <thaytan@mad.scientist.com>
 
+       * ext/libvisual/visual.c: (get_buffer):
+         When pad_alloc returns a GstFlowReturn other
+         than GST_FLOW_OK, make sure it is passed upstream.
+
+2006-01-27  Jan Schmidt  <thaytan@mad.scientist.com>
+
        * ext/alsa/gstalsasink.c: (gst_alsasink_finalise),
        (gst_alsasink_class_init):
          Free the device name string.
index b691e52..3e06f10 100644 (file)
@@ -363,6 +363,9 @@ get_buffer (GstVisual * visual, GstBuffer ** outbuf)
         visual->video->bpp, GST_PAD_CAPS (visual->srcpad), outbuf);
   }
 
+  if (ret != GST_FLOW_OK)
+    return ret;
+
   if (*outbuf == NULL)
     return GST_FLOW_ERROR;