Return NULL if we can't fixate the caps anymore.
authorColin Walters <walters@verbum.org>
Wed, 24 Dec 2003 17:01:00 +0000 (17:01 +0000)
committerColin Walters <walters@verbum.org>
Wed, 24 Dec 2003 17:01:00 +0000 (17:01 +0000)
Original commit message from CVS:
Return NULL if we can't fixate the caps anymore.

ChangeLog
sys/oss/gstosssink.c

index fa878b5..52109b8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-12-24  Colin Walters  <walters@verbum.org>
+
+       * sys/oss/gstosssink.c (gst_osssink_sink_fixate): Return NULL if
+       we can't fixate the caps anymore.
+
 2003-12-23  David Schleef  <ds@schleef.org>
 
        * gst/volume/gstvolume.c: (volume_init): Proxy getcaps.
index 9985427..96ed3d1 100644 (file)
@@ -237,7 +237,9 @@ gst_osssink_sink_fixate (GstPad *pad, const GstCaps *caps, gpointer user_data)
     return newcaps;
   }
 
-  return newcaps;
+  gst_caps_free (newcaps);
+
+  return NULL;
 }
 
 static GstPadLinkReturn