[pitivi] render: Always iterate on already available elements in encodebin



commit 67bb0b7ce69af43545bb35aecb9df63de67cd2c9
Author: Thibault Saunier <tsaunier gnome org>
Date:   Mon Dec 15 18:13:58 2014 +0100

    render: Always iterate on already available elements in encodebin
    
    Because if encodebin.profile.presence is > 0 then the elements are
    created right away exposing the pads and all.
    
    This makes sure that the encoders settings are taken into account!

 pitivi/render.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/render.py b/pitivi/render.py
index 7b9a59b..931c9e6 100644
--- a/pitivi/render.py
+++ b/pitivi/render.py
@@ -853,6 +853,8 @@ class RenderDialog(Loggable):
         encodebin = self._pipeline.get_by_name("internal-encodebin")
         self._gstSigId[encodebin] = encodebin.connect(
             "element-added", self._elementAddedCb)
+        for element in encodebin.iterate_recurse():
+            self._elementAddedCb(encodebin, element)
         self._pipeline.set_state(Gst.State.PLAYING)
         self._is_rendering = True
         self._time_started = time.time()


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