[farsight2/master] Don't sync on sending side (the latency is very different from the receiving side...)

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:21:16 PST 2008


---
 tests/gui/fs2-gui.py                        |    5 +++--
 transmitters/rawudp/fs-rawudp-transmitter.c |    2 ++
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/tests/gui/fs2-gui.py b/tests/gui/fs2-gui.py
index 6345b67..66d4d1f 100644
--- a/tests/gui/fs2-gui.py
+++ b/tests/gui/fs2-gui.py
@@ -74,10 +74,11 @@ mycname = "".join((pwd.getpwuid(os.getuid())[0],
 gladefile = os.path.join(os.path.dirname(__file__),"fs2-gui.glade")
 
 
-def make_video_sink(pipeline, xid, name):
+def make_video_sink(pipeline, xid, name, async=True):
     "Make a bin with a video sink in it, that will be displayed on xid."
     bin = gst.Bin("videosink_%d" % xid)
     sink = gst.element_factory_make("ximagesink", name)
+    sink.set_property("sync", async)
     bin.add(sink)
     colorspace = gst.element_factory_make("ffmpegcolorspace")
     bin.add(colorspace)
@@ -145,7 +146,7 @@ class FsUIPipeline:
     def make_video_preview(self, xid, newsize_callback):
         "Creates the preview sink"
         self.previewsink = make_video_sink(self.pipeline, xid,
-                                           "previewvideosink")
+                                           "previewvideosink", False)
         self.pipeline.add(self.previewsink)
         #Add a probe to wait for the first buffer to find the image size
         self.havesize = self.previewsink.get_pad("sink").add_buffer_probe(self.have_size,
diff --git a/transmitters/rawudp/fs-rawudp-transmitter.c b/transmitters/rawudp/fs-rawudp-transmitter.c
index ef8e735..6cb2625 100644
--- a/transmitters/rawudp/fs-rawudp-transmitter.c
+++ b/transmitters/rawudp/fs-rawudp-transmitter.c
@@ -345,6 +345,7 @@ fs_rawudp_transmitter_constructed (GObject *object)
 
     g_object_set (fakesink,
         "async", FALSE,
+        "sync", FALSE,
         NULL);
 
     pad = gst_element_get_request_pad (self->priv->udpsink_tees[c], "src%d");
@@ -747,6 +748,7 @@ fs_rawudp_transmitter_get_udpport (FsRawUdpTransmitter *trans,
 
   g_object_set (udpport->udpsink,
       "async", FALSE,
+      "sync", FALSE,
       NULL);
 
   trans->priv->udpports[component_id] =
-- 
1.5.6.5




More information about the farsight-commits mailing list