mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
v4l2camerasrc: remove video filter property code
Removes some unused custom video filter element property code
This commit is contained in:
parent
706740845b
commit
b822ad3cd3
2 changed files with 0 additions and 22 deletions
|
@ -39,7 +39,6 @@ enum
|
||||||
PROP_0,
|
PROP_0,
|
||||||
PROP_FILTER_CAPS,
|
PROP_FILTER_CAPS,
|
||||||
PROP_VIDEO_SRC,
|
PROP_VIDEO_SRC,
|
||||||
PROP_VIDEO_SOURCE_FILTER
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#define CAMERABIN_DEFAULT_VF_CAPS "video/x-raw-yuv,format=(fourcc)I420"
|
#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);
|
GST_OBJECT_UNLOCK (self);
|
||||||
configure_format (self, self->view_finder_caps);
|
configure_format (self, self->view_finder_caps);
|
||||||
break;
|
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:
|
case PROP_VIDEO_SRC:
|
||||||
if (GST_STATE (self) != GST_STATE_NULL) {
|
if (GST_STATE (self) != GST_STATE_NULL) {
|
||||||
GST_ELEMENT_ERROR (self, CORE, FAILED,
|
GST_ELEMENT_ERROR (self, CORE, FAILED,
|
||||||
|
@ -122,9 +110,6 @@ gst_v4l2_camera_src_get_property (GObject * object,
|
||||||
case PROP_FILTER_CAPS:
|
case PROP_FILTER_CAPS:
|
||||||
gst_value_set_caps (value, self->view_finder_caps);
|
gst_value_set_caps (value, self->view_finder_caps);
|
||||||
break;
|
break;
|
||||||
case PROP_VIDEO_SOURCE_FILTER:
|
|
||||||
g_value_set_object (value, self->app_video_filter);
|
|
||||||
break;
|
|
||||||
case PROP_VIDEO_SRC:
|
case PROP_VIDEO_SRC:
|
||||||
if (self->src_vid_src)
|
if (self->src_vid_src)
|
||||||
g_value_set_object (value, 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")))
|
gst_camerabin_create_and_add_element (cbin, "capsfilter")))
|
||||||
goto done;
|
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")))
|
if (!(tee = gst_camerabin_create_and_add_element (cbin, "tee")))
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
|
|
|
@ -81,7 +81,6 @@ struct _GstV4l2CameraSrc
|
||||||
|
|
||||||
/* Application configurable elements */
|
/* Application configurable elements */
|
||||||
GstElement *app_vid_src;
|
GstElement *app_vid_src;
|
||||||
GstElement *app_video_filter;
|
|
||||||
|
|
||||||
/* Caps that videosrc supports */
|
/* Caps that videosrc supports */
|
||||||
GstCaps *allowed_caps;
|
GstCaps *allowed_caps;
|
||||||
|
|
Loading…
Reference in a new issue