[cheese/wip/hans-fixes-master: 12/16] Do not block the main valve while recording



commit daec944df23ef2a34e9b18baf83b89277245224d
Author: Hans de Goede <hdegoede redhat com>
Date:   Tue Jun 11 13:14:14 2013 +0200

    Do not block the main valve while recording
    
    Otherwise frames intended for the recording are dropped.
    
    Signed-off-by: Hans de Goede <hdegoede redhat com>

 libcheese/cheese-camera.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libcheese/cheese-camera.c b/libcheese/cheese-camera.c
index 9ec9b42..ad31677 100644
--- a/libcheese/cheese-camera.c
+++ b/libcheese/cheese-camera.c
@@ -919,7 +919,8 @@ cheese_camera_toggle_effects_pipeline (CheeseCamera *camera, gboolean active)
   if (active)
   {
     g_object_set (G_OBJECT (priv->effects_valve), "drop", FALSE, NULL);
-    g_object_set (G_OBJECT (priv->main_valve), "drop", TRUE, NULL);
+    if (!priv->is_recording)
+      g_object_set (G_OBJECT (priv->main_valve), "drop", TRUE, NULL);
   }
   else
   {


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