xvimagesink: Remove the g_assert from interface query
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>
Wed, 25 May 2011 11:08:43 +0000 (14:08 +0300)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 26 May 2011 07:05:55 +0000 (09:05 +0200)
sys/xvimage/xvimagesink.c

index 29bb96a..b645b35 100644 (file)
@@ -2722,9 +2722,11 @@ no_caps:
 static gboolean
 gst_xvimagesink_interface_supported (GstImplementsInterface * iface, GType type)
 {
-  g_assert (type == GST_TYPE_NAVIGATION || type == GST_TYPE_X_OVERLAY ||
-      type == GST_TYPE_COLOR_BALANCE || type == GST_TYPE_PROPERTY_PROBE);
-  return TRUE;
+  if (type == GST_TYPE_NAVIGATION || type == GST_TYPE_X_OVERLAY ||
+      type == GST_TYPE_COLOR_BALANCE || type == GST_TYPE_PROPERTY_PROBE)
+    return TRUE;
+  else
+    return FALSE;
 }
 
 static void