[Telepathy-commits] [mingle/master] Cope with pygst versions that don't support DEBUG_BIN_TO_DOT_FILE
Sjoerd Simons
sjoerd at luon.net
Mon Nov 24 13:20:57 PST 2008
---
fs2.py | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/fs2.py b/fs2.py
index 1c976a9..f83ab99 100644
--- a/fs2.py
+++ b/fs2.py
@@ -319,9 +319,10 @@ class Conference(gst.Pipeline):
print "Unhandled element message %s: " % name
def dump(self):
- print "dumping"
- gst.DEBUG_BIN_TO_DOT_FILE(self, 0x0c,
- "fs2-mingle-pipeline")
+ try:
+ gst.DEBUG_BIN_TO_DOT_FILE(self, 0xff, "fs2-mingle-pipeline")
+ except:
+ print "Need a newer python gst to support dumping pipelines"
def async_handler(self, bus, message):
if message.type == gst.MESSAGE_ERROR:
--
1.5.6.5
More information about the Telepathy-commits
mailing list