PROP_0,
PROP_FILTER_CAPS,
PROP_VIDEO_SRC,
- PROP_VIDEO_SOURCE_FILTER
};
#define CAMERABIN_DEFAULT_VF_CAPS "video/x-raw-yuv,format=(fourcc)I420"
GST_OBJECT_UNLOCK (self);
configure_format (self, self->view_finder_caps);
break;
- case PROP_VIDEO_SOURCE_FILTER:
- if (GST_STATE (self) != GST_STATE_NULL) {
- GST_ELEMENT_ERROR (self, CORE, FAILED,
- ("camerasrc must be in NULL state when setting the video filter element"),
- (NULL));
- } else {
- if (self->app_video_filter)
- gst_object_unref (self->app_video_filter);
- self->app_video_filter = g_value_dup_object (value);
- }
- break;
case PROP_VIDEO_SRC:
if (GST_STATE (self) != GST_STATE_NULL) {
GST_ELEMENT_ERROR (self, CORE, FAILED,
case PROP_FILTER_CAPS:
gst_value_set_caps (value, self->view_finder_caps);
break;
- case PROP_VIDEO_SOURCE_FILTER:
- g_value_set_object (value, self->app_video_filter);
- break;
case PROP_VIDEO_SRC:
if (self->src_vid_src)
g_value_set_object (value, self->src_vid_src);
gst_camerabin_create_and_add_element (cbin, "capsfilter")))
goto done;
- if (self->app_video_filter) {
- if (!gst_camerabin_add_element (cbin, self->app_video_filter)) {
- goto done;
- }
- }
-
if (!(tee = gst_camerabin_create_and_add_element (cbin, "tee")))
goto done;