From c2f54315b1f6fb4c1694505c1c0dcc54d77a3cf5 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 24 Dec 2003 17:01:00 +0000 Subject: Return NULL if we can't fixate the caps anymore. Original commit message from CVS: Return NULL if we can't fixate the caps anymore. --- sys/oss/gstosssink.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/oss') diff --git a/sys/oss/gstosssink.c b/sys/oss/gstosssink.c index 9985427c..96ed3d1a 100644 --- a/sys/oss/gstosssink.c +++ b/sys/oss/gstosssink.c @@ -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 -- cgit