sys/v4l2/gstv4l2element.c: Fix compilation if HAVE_XVIDEO is not defined

Original commit message from CVS:
2004-11-11  Zaheer Abbas Merali  <zaheerabbas at merali dot org>

* sys/v4l2/gstv4l2element.c: (gst_v4l2_iface_supported):
Fix compilation if HAVE_XVIDEO is not defined
This commit is contained in:
Zaheer Abbas Merali 2004-11-11 14:25:11 +00:00
parent 88edfe8688
commit 04a9e93e8e
2 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2004-11-11 Zaheer Abbas Merali <zaheerabbas at merali dot org>
* sys/v4l2/gstv4l2element.c: (gst_v4l2_iface_supported):
Fix compilation if HAVE_XVIDEO is not defined
2004-11-11 Zaheer Abbas Merali <zaheerabbas at merali dot org> 2004-11-11 Zaheer Abbas Merali <zaheerabbas at merali dot org>
* sys/v4l/gstv4lelement.c: (gst_v4l_iface_supported): * sys/v4l/gstv4lelement.c: (gst_v4l_iface_supported):

View file

@ -86,13 +86,18 @@ gst_v4l2_iface_supported (GstImplementsInterface * iface, GType iface_type)
GstV4l2Element *v4l2element = GST_V4L2ELEMENT (iface); GstV4l2Element *v4l2element = GST_V4L2ELEMENT (iface);
g_assert (iface_type == GST_TYPE_TUNER || 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);
if (v4l2element->video_fd == -1) if (v4l2element->video_fd == -1)
return FALSE; return FALSE;
#ifdef HAVE_XVIDEO
if (iface_type == GST_TYPE_X_OVERLAY && !GST_V4L2_IS_OVERLAY (v4l2element)) if (iface_type == GST_TYPE_X_OVERLAY && !GST_V4L2_IS_OVERLAY (v4l2element))
return FALSE; return FALSE;
#endif
return TRUE; return TRUE;
} }