gstv4l2object.c \
gstv4l2bufferpool.c \
gstv4l2src.c \
- gstv4l2sink.c \
gstv4l2tuner.c \
gstv4l2vidorient.c \
v4l2_calls.c \
v4l2src_calls.c \
$(xv_source)
+if BUILD_EXPERIMENTAL
+libgstvideo4linux2_la_SOURCES += gstv4l2sink.c
+endif
+
libgstvideo4linux2_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) \
$(GST_BASE_CFLAGS) \
$(GST_CONTROLLER_CFLAGS) \
#include "gstv4l2object.h"
#include "gstv4l2src.h"
+#ifdef HAVE_EXPERIMENTAL
#include "gstv4l2sink.h"
+#endif
/* #include "gstv4l2jpegsrc.h" */
/* #include "gstv4l2mjpegsrc.h" */
/* #include "gstv4l2mjpegsink.h" */
if (!gst_element_register (plugin, "v4l2src", GST_RANK_PRIMARY,
GST_TYPE_V4L2SRC) ||
+#ifdef HAVE_EXPERIMENTAL
!gst_element_register (plugin, "v4l2sink", GST_RANK_NONE,
GST_TYPE_V4L2SINK) ||
+#endif
/* !gst_element_register (plugin, "v4l2jpegsrc", */
/* GST_RANK_NONE, GST_TYPE_V4L2JPEGSRC) || */
/* !gst_element_register (plugin, "v4l2mjpegsrc", */
#include <gstv4l2bufferpool.h>
#include "gstv4l2src.h"
+#ifdef HAVE_EXPERIMENTAL
#include "gstv4l2sink.h"
+#endif
#include "v4l2_calls.h"
#include "gst/gst-i18n-plugin.h"
GstV4l2Object *v4l2object = NULL;
if (GST_IS_V4L2SRC (v4l2elem)) {
v4l2object = (GST_V4L2SRC (v4l2elem))->v4l2object;
+#ifdef HAVE_EXPERIMENTAL
} else if (GST_IS_V4L2SINK (v4l2elem)) {
v4l2object = (GST_V4L2SINK (v4l2elem))->v4l2object;
+#endif
} else {
GST_ERROR_OBJECT (v4l2elem, "unknown v4l2 element");
}
#include "gstv4l2colorbalance.h"
#include "gstv4l2src.h"
+
+#ifdef HAVE_EXPERIMENTAL
#include "gstv4l2sink.h"
+#endif
#include "gst/gst-i18n-plugin.h"
!(v4l2object->vcap.capabilities & V4L2_CAP_VIDEO_CAPTURE))
goto not_capture;
+#ifdef HAVE_EXPERIMENTAL
if (GST_IS_V4L2SINK (v4l2object->element) &&
!(v4l2object->vcap.capabilities & V4L2_CAP_VIDEO_OUTPUT))
goto not_output;
+#endif
/* create enumerations, posts errors. */
if (!gst_v4l2_fill_lists (v4l2object))
("Capabilities: 0x%x", v4l2object->vcap.capabilities));
goto error;
}
+#ifdef HAVE_EXPERIMENTAL
not_output:
{
GST_ELEMENT_ERROR (v4l2object->element, RESOURCE, NOT_FOUND,
("Capabilities: 0x%x", v4l2object->vcap.capabilities));
goto error;
}
+#endif
error:
{
if (GST_V4L2_IS_OPEN (v4l2object)) {