mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 16:18:16 +00:00
sys/: g_assert() can be a macro, don't use #ifdef inside it.
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.
This commit is contained in:
parent
3b7785eb8e
commit
e35614266c
2 changed files with 11 additions and 3 deletions
|
@ -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>
|
2004-12-19 Edward Hervey <bilboed@bilboed.com>
|
||||||
|
|
||||||
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||||
|
|
|
@ -81,11 +81,13 @@ static guint gst_v4lelement_signals[LAST_SIGNAL] = { 0 };
|
||||||
static gboolean
|
static gboolean
|
||||||
gst_v4l_iface_supported (GstImplementsInterface * iface, GType iface_type)
|
gst_v4l_iface_supported (GstImplementsInterface * iface, GType iface_type)
|
||||||
{
|
{
|
||||||
g_assert (iface_type == GST_TYPE_TUNER ||
|
|
||||||
#ifdef HAVE_XVIDEO
|
#ifdef HAVE_XVIDEO
|
||||||
iface_type == GST_TYPE_X_OVERLAY ||
|
g_assert (iface_type == GST_TYPE_TUNER ||
|
||||||
#endif
|
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);
|
iface_type == GST_TYPE_COLOR_BALANCE);
|
||||||
|
#endif
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue