From b822ad3cd35bbdd0ad560074c4bcab1a3cd72b50 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Tue, 14 Dec 2010 16:59:54 -0300 Subject: [PATCH] v4l2camerasrc: remove video filter property code Removes some unused custom video filter element property code --- gst/camerabin2/gstv4l2camerasrc.c | 21 --------------------- gst/camerabin2/gstv4l2camerasrc.h | 1 - 2 files changed, 22 deletions(-) diff --git a/gst/camerabin2/gstv4l2camerasrc.c b/gst/camerabin2/gstv4l2camerasrc.c index 566ce4d..33bb9e0 100644 --- a/gst/camerabin2/gstv4l2camerasrc.c +++ b/gst/camerabin2/gstv4l2camerasrc.c @@ -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; diff --git a/gst/camerabin2/gstv4l2camerasrc.h b/gst/camerabin2/gstv4l2camerasrc.h index 580af28..5229106 100644 --- a/gst/camerabin2/gstv4l2camerasrc.h +++ b/gst/camerabin2/gstv4l2camerasrc.h @@ -81,7 +81,6 @@ struct _GstV4l2CameraSrc /* Application configurable elements */ GstElement *app_vid_src; - GstElement *app_video_filter; /* Caps that videosrc supports */ GstCaps *allowed_caps; -- 2.7.4