[pitivi] URISinkFactory: Set the URI sink's async property to False



commit b016f653cf9ee9b0a47d77edde833444649531ef
Author: Sebastian Dröge <sebastian droege collabora co uk>
Date:   Mon Jun 14 20:38:52 2010 +0200

    URISinkFactory: Set the URI sink's async property to False
    
    This makes sure that the encoding pipeline prerolls if the encoder
    introduces some additional latency.
    
    Fixes bug #621576.

 pitivi/factories/file.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/factories/file.py b/pitivi/factories/file.py
index 16b6b90..1fd6ebf 100644
--- a/pitivi/factories/file.py
+++ b/pitivi/factories/file.py
@@ -76,4 +76,6 @@ class URISinkFactory(SinkFactory):
         self.addInputStream(MultimediaStream(caps=gst.caps_new_any()))
 
     def _makeBin(self, input_stream=None):
-        return gst.element_make_from_uri(gst.URI_SINK, self.uri)
+        sink_element = gst.element_make_from_uri(gst.URI_SINK, self.uri)
+        sink_element.set_property("async", False)
+        return sink_element



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