v4l2camerasrc: remove video filter property code

Removes some unused custom video filter element property code
This commit is contained in:
Thiago Santos 2010-12-14 16:59:54 -03:00
parent 706740845b
commit b822ad3cd3
2 changed files with 0 additions and 22 deletions

View file

@ -39,7 +39,6 @@ enum
PROP_0,
PROP_FILTER_CAPS,
PROP_VIDEO_SRC,
PROP_VIDEO_SOURCE_FILTER
};
#define CAMERABIN_DEFAULT_VF_CAPS "video/x-raw-yuv,format=(fourcc)I420"
@ -82,17 +81,6 @@ gst_v4l2_camera_src_set_property (GObject * object,
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,
@ -122,9 +110,6 @@ gst_v4l2_camera_src_get_property (GObject * object,
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);
@ -251,12 +236,6 @@ gst_v4l2_camera_src_construct_pipeline (GstBaseCameraSrc * bcamsrc)
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;

View file

@ -81,7 +81,6 @@ struct _GstV4l2CameraSrc
/* Application configurable elements */
GstElement *app_vid_src;
GstElement *app_video_filter;
/* Caps that videosrc supports */
GstCaps *allowed_caps;