[cheese/camerabin2: 12/24] cheese-camera: Remove camerabin's workaround



commit 17011cbb660375e0bfde06aa43d3599614eb66f9
Author: Luciana Fujii Pontello <luciana fujii collabora co uk>
Date:   Thu May 5 16:45:34 2011 -0300

    cheese-camera: Remove camerabin's workaround

 libcheese/cheese-camera.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/libcheese/cheese-camera.c b/libcheese/cheese-camera.c
index c08a800..8bfb4a8 100644
--- a/libcheese/cheese-camera.c
+++ b/libcheese/cheese-camera.c
@@ -996,10 +996,8 @@ cheese_camera_start_video_recording (CheeseCamera *camera, const gchar *filename
   priv = camera->priv;
 
   g_object_set (priv->camerabin, "mode", MODE_VIDEO, NULL);
-  gst_element_set_state (priv->camerabin, GST_STATE_READY);
   g_object_set (priv->camerabin, "location", filename, NULL);
   cheese_camera_set_tags (camera);
-  gst_element_set_state (priv->camerabin, GST_STATE_PLAYING);
   g_signal_emit_by_name (priv->camerabin, "start-capture", 0);
   priv->is_recording = TRUE;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]