mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 03:56:16 +00:00
sys/v4l/gstv4lelement.c (gst_v4l_iface_supported): Remove bogus checks. Doesn't matter what state we are in. Interfac...
Original commit message from CVS: * sys/v4l/gstv4lelement.c (gst_v4l_iface_supported): Remove bogus checks. Doesn't matter what state we are in. Interfaces are a compile time thing, not runtime. It also broke the python bindings.
This commit is contained in:
parent
aae89effee
commit
4bc732a020
2 changed files with 6 additions and 8 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2004-08-12 Johan Dahlin <johan@gnome.org>
|
||||||
|
|
||||||
|
* sys/v4l/gstv4lelement.c (gst_v4l_iface_supported): Remove bogus
|
||||||
|
checks. Doesn't matter what state we are in. Interfaces are a
|
||||||
|
compile time thing, not runtime. It also broke the python bindings.
|
||||||
|
|
||||||
2004-08-12 Zaheer Abbas Merali <zaheerabbas at merali dot org>
|
2004-08-12 Zaheer Abbas Merali <zaheerabbas at merali dot org>
|
||||||
|
|
||||||
* ext/lame/gstlame.c: (gst_lame_src_link):
|
* ext/lame/gstlame.c: (gst_lame_src_link):
|
||||||
|
|
|
@ -79,17 +79,9 @@ 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)
|
||||||
{
|
{
|
||||||
GstV4lElement *v4lelement = GST_V4LELEMENT (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);
|
iface_type == GST_TYPE_X_OVERLAY || iface_type == GST_TYPE_COLOR_BALANCE);
|
||||||
|
|
||||||
if (v4lelement->video_fd == -1)
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
if (iface_type == GST_TYPE_X_OVERLAY && !GST_V4L_IS_OVERLAY (v4lelement))
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue