[transmageddon/gtk3] Further small fixes to try to port towards 0.11
- From: Christian Fredrik Kalager Schaller <uraeus src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [transmageddon/gtk3] Further small fixes to try to port towards 0.11
- Date: Wed, 14 Dec 2011 12:45:18 +0000 (UTC)
commit ba14c3e2f6b93d9daae0a3f741ab08031a73dd1c
Author: Christian Fredrik Kalager Schaller <christian schaller collabora co uk>
Date: Wed Dec 14 12:44:58 2011 +0000
Further small fixes to try to port towards 0.11
src/transcoder_engine.py | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/transcoder_engine.py b/src/transcoder_engine.py
index 557c306..c8ca47d 100644
--- a/src/transcoder_engine.py
+++ b/src/transcoder_engine.py
@@ -333,7 +333,7 @@ class Transcoder(GObject.GObject):
def OnDynamicPad(self, uridecodebin, src_pad):
print "src_pad is" +str(src_pad)
- origin = src_pad.query_caps()
+ origin = src_pad.query_caps(None)
if (self.container==False):
a = origin.to_string()
if a.startswith("audio/"):
@@ -344,7 +344,7 @@ class Transcoder(GObject.GObject):
c = origin.to_string()
if c.startswith("audio/"):
sinkpad = self.encodebin.emit("request-pad", origin)
- d = sinkpad.query_caps().to_string()
+ d = sinkpad.query_caps(None).to_string()
if d.startswith("audio/"):
src_pad.link(sinkpad)
else:
@@ -355,9 +355,12 @@ class Transcoder(GObject.GObject):
c = origin.to_string()
if not c.startswith("text/"):
if not (c.startswith("video/") and (self.videocaps == False)):
- # print "creating sinkpad"
+ print "creating sinkpad"
+ print "origin is " + str(c)
sinkpad = self.encodebin.emit("request-pad", origin)
if c.startswith("audio/"):
+ print "src_pad is " +str(src_pad)
+ print "sinkpad is " +str(sinkpad)
src_pad.link(sinkpad)
elif ((c.startswith("video/") or c.startswith("image/")) and (self.videocaps != False)):
if self.videopasstoggle==False:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]