Package: pitivi / 0.13.4-3

02_uri-sink-async.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From b016f653cf9ee9b0a47d77edde833444649531ef Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian.droege@collabora.co.uk>
Date: Mon, 14 Jun 2010 20:38:52 +0200
Subject: [PATCH] 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
-- 
1.7.1