[transmageddon] Comment out fakesink, it is not needed as bug 647709 is worked around by setting caps on uridecodebi



commit 3facceaef8590d9f7d1e76dada7d37a22764b065
Author: Christian Fredrik Kalager Schaller <christian schaller collabora co uk>
Date:   Thu Apr 14 22:09:13 2011 +0100

    Comment out fakesink, it is not needed as bug 647709 is worked around by
    setting caps on uridecodebin element

 src/transcoder_engine.py |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/src/transcoder_engine.py b/src/transcoder_engine.py
index 238b456..33a5d3d 100644
--- a/src/transcoder_engine.py
+++ b/src/transcoder_engine.py
@@ -147,10 +147,10 @@ class Transcoder(gobject.GObject):
        self.encodebin.set_property("profile", self.encodebinprofile)
        self.encodebin.set_property("avoid-reencoding", True)
        self.pipeline.add(self.encodebin)
-       if self.videocaps=="novid":
-           self.fakesink = gst.element_factory_make("fakesink", "fakesink")
-           self.fakesink.set_property("sync", True)
-           self.pipeline.add(self.fakesink)
+      # if self.videocaps=="novid":
+      #     self.fakesink = gst.element_factory_make("fakesink", "fakesink")
+      #     self.fakesink.set_property("sync", True)
+      #     self.pipeline.add(self.fakesink)
 
        self.remuxcaps = gst.Caps()
        if self.audiopasstoggle:
@@ -186,8 +186,8 @@ class Transcoder(gobject.GObject):
        # print "reached end of first pipeline bulk, next step dynamic
        # audio/video pads"
 
-       if self.videocaps=="novid":
-           self.fakesink.set_state(gst.STATE_PAUSED)
+       #if self.videocaps=="novid":
+       #    self.fakesink.set_state(gst.STATE_PAUSED)
        self.uridecoder.set_state(gst.STATE_PAUSED)
        self.encodebin.set_state(gst.STATE_PAUSED)
        # print "setting uridcodebin to paused"
@@ -357,8 +357,8 @@ class Transcoder(gobject.GObject):
            if a.startswith("audio/"):
                sinkpad = self.encodebin.get_static_pad("audio_0")
                src_pad.link(sinkpad)
-           elif a.startswith("video/"):
-               src_pad.link(self.fakesink.get_static_pad("sink"))
+         #  elif a.startswith("video/"):
+         #      src_pad.link(self.fakesink.get_static_pad("sink"))
        else:
            if self.videocaps == "novid":
                a =  src_pad.get_caps().to_string()
@@ -367,8 +367,8 @@ class Transcoder(gobject.GObject):
                    c = sinkpad.get_caps().to_string()
                    if c.startswith("audio/"):
                        src_pad.link(sinkpad)
-               elif a.startswith("video/"):
-                   src_pad.link(self.fakesink.get_static_pad("sink"))
+               #elif a.startswith("video/"):
+               #    src_pad.link(self.fakesink.get_static_pad("sink"))
            else:
                sinkpad = self.encodebin.emit("request-pad", src_pad.get_caps())
                c = sinkpad.get_caps().to_string()



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