[transmageddon/gtk3] fix .get_caps to .query_caps due to API change
- From: Christian Fredrik Kalager Schaller <uraeus src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [transmageddon/gtk3] fix .get_caps to .query_caps due to API change
- Date: Wed, 14 Dec 2011 08:52:22 +0000 (UTC)
commit 80bd06ec803878d129bfc7199885b60b788735ce
Author: Christian Fredrik Kalager Schaller <christian schaller collabora co uk>
Date: Wed Dec 14 08:51:59 2011 +0000
fix .get_caps to .query_caps due to API change
src/transcoder_engine.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/transcoder_engine.py b/src/transcoder_engine.py
index 0a67eec..557c306 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.get_caps()
+ origin = src_pad.query_caps()
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.get_caps().to_string()
+ d = sinkpad.query_caps().to_string()
if d.startswith("audio/"):
src_pad.link(sinkpad)
else:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]