From 3cdeea0cac5b9cdb06c26c2234ccda9ec5bdc6f1 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Mon, 3 Feb 2014 23:09:28 -0300 Subject: [PATCH] camerabin: remove unused variable Probably a left over from 0.10 -> 1.x porting --- gst/camerabin2/gstcamerabin2.c | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/gst/camerabin2/gstcamerabin2.c b/gst/camerabin2/gstcamerabin2.c index f64ce2b740..29618f2299 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: