[cheese/camerabin2: 13/23] camerabin2: set ClutterTextureVideoSink sync=false



commit eacadef01263417b6c9a46ca11bdcb6755066d76
Author: Raluca Elena Podiuc <ralucaelena1985 gmail com>
Date:   Thu Jul 28 23:13:08 2011 +0300

    camerabin2: set ClutterTextureVideoSink sync=false
    
    Without this the sink will issue a warning:
    
      ** (cheese:21655): WARNING **: Internal data flow problem.:
      gstbasesink.c(3626): gst_base_sink_chain_unlocked ():
      /GstCameraBin2:camerabin2/GstViewfinderBin:vf-bin/ClutterGstVideoSink:cluttergstvideosink0:
      Received buffer without a new-segment. Assuming timestamps start from 0.
    
    I'm not sure what the implications of this setting are. It might be
    caused by the clock/time rewriting magic from camerabin2.

 libcheese/cheese-camera.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libcheese/cheese-camera.c b/libcheese/cheese-camera.c
index c58e06f..557e3b7 100644
--- a/libcheese/cheese-camera.c
+++ b/libcheese/cheese-camera.c
@@ -1509,6 +1509,7 @@ cheese_camera_setup (CheeseCamera *camera, const gchar *uuid, GError **error)
     return;
   }
   g_object_set (G_OBJECT (video_sink), "async", FALSE, NULL);
+  g_object_set (G_OBJECT (video_sink), "sync", FALSE, NULL);
   g_object_set (G_OBJECT (priv->camerabin), "viewfinder-sink", video_sink, NULL);
 
   /* Set caps to filter, so it doesn't defaults to I420 format*/



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