mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
v4l2src: Don't assert when the interface is not implemented.
Simply return FALSE instead. https://bugzilla.gnome.org/show_bug.cgi?id=667817
This commit is contained in:
parent
e886ef8f5b
commit
150403ab13
1 changed files with 9 additions and 7 deletions
|
@ -95,14 +95,16 @@ gst_v4l2src_iface_supported (GstImplementsInterface * iface, GType iface_type)
|
||||||
GstV4l2Object *v4l2object = GST_V4L2SRC (iface)->v4l2object;
|
GstV4l2Object *v4l2object = GST_V4L2SRC (iface)->v4l2object;
|
||||||
|
|
||||||
#ifdef HAVE_XVIDEO
|
#ifdef HAVE_XVIDEO
|
||||||
g_assert (iface_type == GST_TYPE_TUNER ||
|
if (!(iface_type == GST_TYPE_TUNER ||
|
||||||
iface_type == GST_TYPE_X_OVERLAY ||
|
iface_type == GST_TYPE_X_OVERLAY ||
|
||||||
iface_type == GST_TYPE_COLOR_BALANCE ||
|
iface_type == GST_TYPE_COLOR_BALANCE ||
|
||||||
iface_type == GST_TYPE_VIDEO_ORIENTATION);
|
iface_type == GST_TYPE_VIDEO_ORIENTATION))
|
||||||
|
return FALSE;
|
||||||
#else
|
#else
|
||||||
g_assert (iface_type == GST_TYPE_TUNER ||
|
if (!(iface_type == GST_TYPE_TUNER ||
|
||||||
iface_type == GST_TYPE_COLOR_BALANCE ||
|
iface_type == GST_TYPE_COLOR_BALANCE ||
|
||||||
iface_type == GST_TYPE_VIDEO_ORIENTATION);
|
iface_type == GST_TYPE_VIDEO_ORIENTATION))
|
||||||
|
return FALSE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (v4l2object->video_fd == -1)
|
if (v4l2object->video_fd == -1)
|
||||||
|
|
Loading…
Reference in a new issue