sys/: g_assert() can be a macro, don't use #ifdef inside it.
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>
Sun, 19 Dec 2004 16:46:21 +0000 (16:46 +0000)
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>
Sun, 19 Dec 2004 16:46:21 +0000 (16:46 +0000)
Original commit message from CVS:
* sys/v4l/gstv4lelement.c: (gst_v4l_iface_supported):
* sys/v4l2/gstv4l2element.c: (gst_v4l2_iface_supported):
g_assert() can be a macro, don't use #ifdef inside it.

ChangeLog
sys/v4l2/gstv4l2element.c

index db92de2f2350978fe5877cbe139af193ac536a38..5aabe673798c26744ca89ec080698199d94e9b80 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-12-19  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
+
+       * sys/v4l/gstv4lelement.c: (gst_v4l_iface_supported):
+       * sys/v4l2/gstv4l2element.c: (gst_v4l2_iface_supported):
+         g_assert() can be a macro, don't use #ifdef inside it.
+
 2004-12-19  Edward Hervey  <bilboed@bilboed.com>
 
        Reviewed by:  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
index f8d980c0542623d2648988dc4d2083f27d9b63f0..09953c947ed07f5bb09f76bc4f86b079e43b127c 100644 (file)
@@ -85,11 +85,13 @@ gst_v4l2_iface_supported (GstImplementsInterface * iface, GType iface_type)
 {
   GstV4l2Element *v4l2element = GST_V4L2ELEMENT (iface);
 
-  g_assert (iface_type == GST_TYPE_TUNER ||
 #ifdef HAVE_XVIDEO
-      iface_type == GST_TYPE_X_OVERLAY ||
-#endif
+  g_assert (iface_type == GST_TYPE_TUNER ||
+      iface_type == GST_TYPE_X_OVERLAY || iface_type == GST_TYPE_COLOR_BALANCE);
+#else
+  g_assert (iface_type == GST_TYPE_TUNER ||
       iface_type == GST_TYPE_COLOR_BALANCE);
+#endif
 
   if (v4l2element->video_fd == -1)
     return FALSE;