sys/v4l/gstv4lelement.c (gst_v4l_iface_supported): Remove bogus checks. Doesn't matte...
authorJohan Dahlin <johan@gnome.org>
Thu, 12 Aug 2004 16:39:45 +0000 (16:39 +0000)
committerJohan Dahlin <johan@gnome.org>
Thu, 12 Aug 2004 16:39:45 +0000 (16:39 +0000)
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
sys/v4l/gstv4lelement.c

index 4ff6cc6..53be393 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-08-12  Johan Dahlin  <johan@gnome.org>
+
+       * 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  <zaheerabbas at merali dot org>
 
        * ext/lame/gstlame.c: (gst_lame_src_link):
index 9fd9365..a5894d2 100644 (file)
@@ -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;
 }