sys/v4l/gstv4lelement.c: Fix compilation if HAVE_XVIDEO is not defined
authorZaheer Abbas Merali <zaheerabbas@merali.org>
Thu, 11 Nov 2004 14:20:17 +0000 (14:20 +0000)
committerZaheer Abbas Merali <zaheerabbas@merali.org>
Thu, 11 Nov 2004 14:20:17 +0000 (14:20 +0000)
Original commit message from CVS:
2004-11-11  Zaheer Abbas Merali  <zaheerabbas at merali dot org>

* sys/v4l/gstv4lelement.c: (gst_v4l_iface_supported):
Fix compilation if HAVE_XVIDEO is not defined

ChangeLog
sys/v4l/gstv4lelement.c

index 4b37f68..58cfbac 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-11-11  Zaheer Abbas Merali  <zaheerabbas at merali dot org>
+
+       * sys/v4l/gstv4lelement.c: (gst_v4l_iface_supported):
+       Fix compilation if HAVE_XVIDEO is not defined
+
 2004-11-11  Jan Schmidt  <thaytan@mad.scientist.com>
 
        * gst/goom/gstgoom.c: (gst_goom_class_init), (gst_goom_init),
index 19db2e8..042222a 100644 (file)
@@ -82,7 +82,10 @@ static gboolean
 gst_v4l_iface_supported (GstImplementsInterface * iface, GType iface_type)
 {
   g_assert (iface_type == GST_TYPE_TUNER ||
-      iface_type == GST_TYPE_X_OVERLAY || iface_type == GST_TYPE_COLOR_BALANCE);
+#ifdef HAVE_XVIDEO
+      iface_type == GST_TYPE_X_OVERLAY ||
+#endif
+      iface_type == GST_TYPE_COLOR_BALANCE);
 
   return TRUE;
 }