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.
+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>
{
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;