don't needlessly do stuff; don't clutter my logs
authorThomas Vander Stichele <thomas@apestaart.org>
Wed, 21 Jul 2004 09:23:40 +0000 (09:23 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Wed, 21 Jul 2004 09:23:40 +0000 (09:23 +0000)
Original commit message from CVS:
don't needlessly do stuff; don't clutter my logs

ChangeLog
gst/ffmpegcolorspace/gstffmpegcolorspace.c

index 4a28eab..05ba98d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2004-07-21  Thomas Vander Stichele  <thomas at apestaart dot org>
+
+       * gst/ffmpegcolorspace/gstffmpegcolorspace.c:
+       (gst_ffmpegcolorspace_chain):
+         no point in doing any chaining if the pad we want to push from
+         isn't usable.
+
 2004-07-20  Ronald Bultje  <rbultje@ronald.bitfreak.net>
 
        * gst-libs/gst/riff/riff-media.c:
index a033e29..ee3fbb7 100644 (file)
@@ -304,6 +304,11 @@ gst_ffmpegcolorspace_chain (GstPad * pad, GstData * data)
   g_return_if_fail (space != NULL);
   g_return_if_fail (GST_IS_FFMPEGCOLORSPACE (space));
 
+  if (!GST_PAD_IS_USABLE (space->srcpad)) {
+    gst_buffer_unref (inbuf);
+    return;
+  }
+
   if (space->from_pixfmt == PIX_FMT_NB || space->to_pixfmt == PIX_FMT_NB) {
     GST_ELEMENT_ERROR (space, CORE, NOT_IMPLEMENTED, (NULL),
         ("attempting to convert colorspaces between unknown formats"));