camerabin: Use v4l2src as default source.

This commit is contained in:
René Stadler 2009-02-11 01:24:51 +02:00
parent c7dfd53899
commit 6675318107

View File

@ -218,11 +218,8 @@ static guint camerabin_signals[LAST_SIGNAL];
#define USE_COLOR_CONVERTER 1 #define USE_COLOR_CONVERTER 1
/* FIXME: use autovideosrc /* FIXME: Make sure this can work with autovideosrc and use that. */
* v4l2camsrc should have GST_RANK_PRIMARY in maemo and _NONE in plugins-bad static const char SRC_VID_SRC[] = "v4l2src";
* for now */
static const char SRC_VID_SRC[] = "v4l2camsrc";
/*static const char SRC_VID_SRC[] = "v4l2src"; */
static const char ZOOM_CROP[] = "videocrop"; static const char ZOOM_CROP[] = "videocrop";
static const char ZOOM_SCALE[] = "videoscale"; static const char ZOOM_SCALE[] = "videoscale";
@ -2017,14 +2014,14 @@ gst_camerabin_class_init (GstCameraBinClass * klass)
* GstCameraBin:videosrc: * GstCameraBin:videosrc:
* *
* Set up a video source element. * Set up a video source element.
* By default "v4l2camsrc" will be the src element. * By default "v4l2src" will be the src element.
* This property can only be set while #GstCameraBin is in NULL state. * This property can only be set while #GstCameraBin is in NULL state.
* The ownership of the element will be taken by #GstCameraBin. * The ownership of the element will be taken by #GstCameraBin.
*/ */
g_object_class_install_property (gobject_class, ARG_VIDEO_SRC, g_object_class_install_property (gobject_class, ARG_VIDEO_SRC,
g_param_spec_object ("videosrc", "Video source element", g_param_spec_object ("videosrc", "Video source element",
"Video source GStreamer element (default is v4l2camsrc)", "Video source GStreamer element (default is v4l2src)",
GST_TYPE_ELEMENT, G_PARAM_READWRITE)); GST_TYPE_ELEMENT, G_PARAM_READWRITE));
/** /**
* GstCameraBin:audiosrc: * GstCameraBin:audiosrc: