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

index 99ad35b..c882bec 100644 (file)
@@ -1951,8 +1951,10 @@ beach:
 static gboolean
 gst_ximagesink_interface_supported (GstImplementsInterface * iface, GType type)
 {
-  g_assert (type == GST_TYPE_NAVIGATION || type == GST_TYPE_X_OVERLAY);
-  return TRUE;
+  if (type == GST_TYPE_NAVIGATION || type == GST_TYPE_X_OVERLAY)
+    return TRUE;
+  else
+    return FALSE;
 }
 
 static void