[transmageddon] Fix tests to the correct pipelines are formed for all possible combinations of audio and video



commit 991726a14ff0206ff5f38fe1930ff2a43f13eacd
Author: Christian Fredrik Kalager Schaller <christian schaller collabora co uk>
Date:   Sat Oct 15 19:22:03 2011 +0100

    Fix tests to the correct pipelines are formed for all possible
    combinations of audio and video

 src/transcoder_engine.py |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/transcoder_engine.py b/src/transcoder_engine.py
index 27cd7c3..60c0991 100644
--- a/src/transcoder_engine.py
+++ b/src/transcoder_engine.py
@@ -341,13 +341,18 @@ class Transcoder(gobject.GObject):
                    if d.startswith("audio/"):
                        src_pad.link(sinkpad)
            else:
+               # Checking if its a subtitle pad which we can't deal with
+               # currently.0
+               # Making sure that when we remove video from a file we don't
+               # bother with the video pad.
                c = origin.to_string()
                if not c.startswith("text/"):
-                   if not (c.startswith("video/") and (self.audiocaps != False)):
+                   if not (c.startswith("video/") and (self.videocaps == False)):
+                       # print "creating sinkpad"
                        sinkpad = self.encodebin.emit("request-pad", origin)
                if c.startswith("audio/"):
                    src_pad.link(sinkpad)
-               elif (c.startswith("video/") and (self.videocaps != False)):
+               elif ((c.startswith("video/") or c.startswith("image/")) and (self.videocaps != False)):
                    if self.videopasstoggle==False:
                        src_pad.link(self.deinterlacer.get_static_pad("sink"))
                        self.videoflipper.get_static_pad("src").link(sinkpad)



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