camerabin: remove caching photography interface settings
authorLasse Laukkanen <ext-lasse.2.laukkanen@nokia.com>
Tue, 8 Jun 2010 07:04:52 +0000 (10:04 +0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Mon, 20 Sep 2010 21:26:48 +0000 (18:26 -0300)
Camerabin doesn't implement photography interface, so we
don't need caching the video source properties anymore.

gst/camerabin/gstcamerabin.c
gst/camerabin/gstcamerabin.h

index ff725bb..b96c18e 100644 (file)
@@ -474,14 +474,6 @@ camerabin_setup_src_elements (GstCameraBin * camera)
 
   gst_camerabin_monitor_video_source_properties (camera);
 
-  /* Update photography interface settings */
-  if (GST_IS_ELEMENT (camera->src_vid_src) &&
-      gst_element_implements_interface (camera->src_vid_src,
-          GST_TYPE_PHOTOGRAPHY)) {
-    gst_photography_set_config (GST_PHOTOGRAPHY (camera->src_vid_src),
-        &camera->photo_settings);
-  }
-
   if (camera->width > 0 && camera->height > 0) {
     gst_structure_set (st,
         "width", G_TYPE_INT, camera->width,
@@ -3129,8 +3121,6 @@ gst_camerabin_init (GstCameraBin * camera, GstCameraBinClass * gclass)
   camera->app_video_filter = NULL;
 
   camera->active_bin = NULL;
-
-  memset (&camera->photo_settings, 0, sizeof (GstPhotoSettings));
 }
 
 static void
index bd4a8e9..c2a6ffe 100644 (file)
@@ -149,9 +149,6 @@ struct _GstCameraBin
   gint pre_night_fps_n;
   gint pre_night_fps_d;
 
-  /* Cache the photography interface settings */
-  GstPhotoSettings photo_settings;
-
   /* Buffer probe id for captured image handling */
   gulong image_captured_id;