mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
camerabin: remove unused variable
Probably a left over from 0.10 -> 1.x porting
This commit is contained in:
parent
d12fdf785c
commit
3cdeea0cac
1 changed files with 0 additions and 30 deletions
|
@ -2065,12 +2065,6 @@ gst_camera_bin_set_property (GObject * object, guint prop_id,
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case PROP_IMAGE_CAPTURE_CAPS:{
|
case PROP_IMAGE_CAPTURE_CAPS:{
|
||||||
GstPad *pad = NULL;
|
|
||||||
|
|
||||||
if (camera->src)
|
|
||||||
pad =
|
|
||||||
gst_element_get_static_pad (camera->src,
|
|
||||||
GST_BASE_CAMERA_SRC_IMAGE_PAD_NAME);
|
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (camera,
|
GST_DEBUG_OBJECT (camera,
|
||||||
"Setting image capture caps to %" GST_PTR_FORMAT,
|
"Setting image capture caps to %" GST_PTR_FORMAT,
|
||||||
|
@ -2082,19 +2076,9 @@ gst_camera_bin_set_property (GObject * object, guint prop_id,
|
||||||
} else {
|
} else {
|
||||||
GST_WARNING_OBJECT (camera, "Image capsfilter missing");
|
GST_WARNING_OBJECT (camera, "Image capsfilter missing");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pad)
|
|
||||||
gst_object_unref (pad);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case PROP_VIDEO_CAPTURE_CAPS:{
|
case PROP_VIDEO_CAPTURE_CAPS:{
|
||||||
GstPad *pad = NULL;
|
|
||||||
|
|
||||||
if (camera->src)
|
|
||||||
pad =
|
|
||||||
gst_element_get_static_pad (camera->src,
|
|
||||||
GST_BASE_CAMERA_SRC_VIDEO_PAD_NAME);
|
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (camera,
|
GST_DEBUG_OBJECT (camera,
|
||||||
"Setting video capture caps to %" GST_PTR_FORMAT,
|
"Setting video capture caps to %" GST_PTR_FORMAT,
|
||||||
gst_value_get_caps (value));
|
gst_value_get_caps (value));
|
||||||
|
@ -2106,19 +2090,9 @@ gst_camera_bin_set_property (GObject * object, guint prop_id,
|
||||||
GST_WARNING_OBJECT (camera, "Video capsfilter missing");
|
GST_WARNING_OBJECT (camera, "Video capsfilter missing");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pad) {
|
|
||||||
gst_object_unref (pad);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case PROP_VIEWFINDER_CAPS:{
|
case PROP_VIEWFINDER_CAPS:{
|
||||||
GstPad *pad = NULL;
|
|
||||||
|
|
||||||
if (camera->src)
|
|
||||||
pad =
|
|
||||||
gst_element_get_static_pad (camera->src,
|
|
||||||
GST_BASE_CAMERA_SRC_VIEWFINDER_PAD_NAME);
|
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (camera,
|
GST_DEBUG_OBJECT (camera,
|
||||||
"Setting viewfinder capture caps to %" GST_PTR_FORMAT,
|
"Setting viewfinder capture caps to %" GST_PTR_FORMAT,
|
||||||
gst_value_get_caps (value));
|
gst_value_get_caps (value));
|
||||||
|
@ -2129,10 +2103,6 @@ gst_camera_bin_set_property (GObject * object, guint prop_id,
|
||||||
} else {
|
} else {
|
||||||
GST_WARNING_OBJECT (camera, "Viewfinder capsfilter missing");
|
GST_WARNING_OBJECT (camera, "Viewfinder capsfilter missing");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pad) {
|
|
||||||
gst_object_unref (pad);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case PROP_POST_PREVIEWS:
|
case PROP_POST_PREVIEWS:
|
||||||
|
|
Loading…
Reference in a new issue