From 2f6d9e55cc062d2bca7c965f9a187d07296beb12 Mon Sep 17 00:00:00 2001 From: Sreerenj Balachandran Date: Wed, 25 May 2011 14:08:43 +0300 Subject: [PATCH] xvimagesink: Remove the g_assert from interface query --- sys/xvimage/xvimagesink.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c index 29bb96a32e..b645b35392 100644 --- a/sys/xvimage/xvimagesink.c +++ b/sys/xvimage/xvimagesink.c @@ -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