From 4bc732a020fd8aca80eb7d60c446eadce3f5ea70 Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Thu, 12 Aug 2004 16:39:45 +0000 Subject: [PATCH] sys/v4l/gstv4lelement.c (gst_v4l_iface_supported): Remove bogus checks. Doesn't matter what state we are in. Interfac... Original commit message from CVS: * sys/v4l/gstv4lelement.c (gst_v4l_iface_supported): Remove bogus checks. Doesn't matter what state we are in. Interfaces are a compile time thing, not runtime. It also broke the python bindings. --- ChangeLog | 6 ++++++ sys/v4l/gstv4lelement.c | 8 -------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4ff6cc6e53..53be3930f7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-08-12 Johan Dahlin + + * sys/v4l/gstv4lelement.c (gst_v4l_iface_supported): Remove bogus + checks. Doesn't matter what state we are in. Interfaces are a + compile time thing, not runtime. It also broke the python bindings. + 2004-08-12 Zaheer Abbas Merali * ext/lame/gstlame.c: (gst_lame_src_link): diff --git a/sys/v4l/gstv4lelement.c b/sys/v4l/gstv4lelement.c index 9fd9365d63..a5894d2125 100644 --- a/sys/v4l/gstv4lelement.c +++ b/sys/v4l/gstv4lelement.c @@ -79,17 +79,9 @@ static guint gst_v4lelement_signals[LAST_SIGNAL] = { 0 }; static gboolean gst_v4l_iface_supported (GstImplementsInterface * iface, GType iface_type) { - GstV4lElement *v4lelement = GST_V4LELEMENT (iface); - g_assert (iface_type == GST_TYPE_TUNER || iface_type == GST_TYPE_X_OVERLAY || iface_type == GST_TYPE_COLOR_BALANCE); - if (v4lelement->video_fd == -1) - return FALSE; - - if (iface_type == GST_TYPE_X_OVERLAY && !GST_V4L_IS_OVERLAY (v4lelement)) - return FALSE; - return TRUE; }