freeze break request for cheese



Hi,

I've recently fixed a bug in Cheese:
https://bugzilla.gnome.org/show_bug.cgi?id=645975
video recording makes black-only movies after taking a photo or
recording another movie

The patch is very short and improves recording performance for people
who didn't experience this bug.

No strings or UIs have been harmed while producing this patch. :)

diff --git a/libcheese/cheese-camera.c b/libcheese/cheese-camera.c
index e610e70..a3dc0a1 100644
--- a/libcheese/cheese-camera.c
+++ b/libcheese/cheese-camera.c
@@ -792,8 +792,10 @@ cheese_camera_start_video_recording (CheeseCamera
*camera, const char *filename)
   CheeseCameraPrivate *priv = CHEESE_CAMERA_GET_PRIVATE (camera);

   g_object_set (priv->camerabin, "mode", MODE_VIDEO, NULL);
+  gst_element_set_state (priv->camerabin, GST_STATE_READY);
   g_object_set (priv->camerabin, "filename", filename, NULL);
   g_signal_emit_by_name (priv->camerabin, "capture-start", 0);
+  gst_element_set_state (priv->camerabin, GST_STATE_PLAYING);
   priv->is_recording = TRUE;
 }


-- 
Raluca-Elena


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