[aravis] viewer: set sync to false for xvimagesink element.



commit 51287f25292394421e25abcb2615855f0903c3db
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Tue May 24 10:01:52 2011 +0200

    viewer: set sync to false for xvimagesink element.
    
    It fixes the frozen image and latency problem seen with the Prosilica
    GC1380 camera. The real issue is apparently a wrong timestamp on the
    first frame send by the camera.

 viewer/arvviewer.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/viewer/arvviewer.c b/viewer/arvviewer.c
index 2de6088..458a0b7 100644
--- a/viewer/arvviewer.c
+++ b/viewer/arvviewer.c
@@ -450,10 +450,12 @@ arv_viewer_select_camera_cb (GtkComboBox *combo_box, ArvViewer *viewer)
 
 	viewer->pipeline = gst_pipeline_new ("pipeline");
 
-	viewer->appsrc = gst_element_factory_make ("appsrc", "appsrc");
-	ffmpegcolorspace = gst_element_factory_make ("ffmpegcolorspace", "ffmpegcolorspace");
-	ximagesink = gst_element_factory_make ("xvimagesink", "xvimagesink");
-	g_object_set (ximagesink, "force-aspect-ratio", TRUE, NULL);
+	viewer->appsrc = gst_element_factory_make ("appsrc", NULL);
+	ffmpegcolorspace = gst_element_factory_make ("ffmpegcolorspace", NULL);
+	ximagesink = gst_element_factory_make ("xvimagesink", NULL);
+
+	g_object_set (ximagesink, "force-aspect-ratio", TRUE, "draw-borders", TRUE, "sync", FALSE, NULL);
+
 	gst_bin_add_many (GST_BIN (viewer->pipeline), viewer->appsrc, ffmpegcolorspace, ximagesink, NULL);
 	gst_element_link_many (viewer->appsrc, ffmpegcolorspace, ximagesink, NULL);
 



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