summaryrefslogtreecommitdiff
path: root/gst/camerabin2
diff options
context:
space:
mode:
authorThiago Santos <ts.santos@sisa.samsung.com>2014-02-03 23:09:28 -0300
committerThiago Santos <ts.santos@sisa.samsung.com>2014-02-04 14:17:26 -0300
commit3cdeea0cac5b9cdb06c26c2234ccda9ec5bdc6f1 (patch)
tree62a348b8b1a16796ab899d3d1078e96fd280923f /gst/camerabin2
parentd12fdf785c112052f154c89b026707fbc78f7e56 (diff)
downloadgstreamer-plugins-bad-3cdeea0cac5b9cdb06c26c2234ccda9ec5bdc6f1.tar.gz
camerabin: remove unused variable
Probably a left over from 0.10 -> 1.x porting
Diffstat (limited to 'gst/camerabin2')
-rw-r--r--gst/camerabin2/gstcamerabin2.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/gst/camerabin2/gstcamerabin2.c b/gst/camerabin2/gstcamerabin2.c
index f64ce2b74..29618f229 100644
--- a/gst/camerabin2/gstcamerabin2.c
+++ b/gst/camerabin2/gstcamerabin2.c
@@ -2065,12 +2065,6 @@ gst_camera_bin_set_property (GObject * object, guint prop_id,
}
break;
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,
"Setting image capture caps to %" GST_PTR_FORMAT,
@@ -2082,19 +2076,9 @@ gst_camera_bin_set_property (GObject * object, guint prop_id,
} else {
GST_WARNING_OBJECT (camera, "Image capsfilter missing");
}
-
- if (pad)
- gst_object_unref (pad);
}
break;
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,
"Setting video capture caps to %" GST_PTR_FORMAT,
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");
}
- if (pad) {
- gst_object_unref (pad);
- }
}
break;
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,
"Setting viewfinder capture caps to %" GST_PTR_FORMAT,
gst_value_get_caps (value));
@@ -2129,10 +2103,6 @@ gst_camera_bin_set_property (GObject * object, guint prop_id,
} else {
GST_WARNING_OBJECT (camera, "Viewfinder capsfilter missing");
}
-
- if (pad) {
- gst_object_unref (pad);
- }
}
break;
case PROP_POST_PREVIEWS: