[transmageddon] Add explicit test for latest gst-python
- From: Christian Fredrik Kalager Schaller <uraeus src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [transmageddon] Add explicit test for latest gst-python
- Date: Sat, 29 Oct 2011 17:32:47 +0000 (UTC)
commit 02fca92198604abfe68513fe83faed9a2891d57d
Author: Christian Fredrik Kalager Schaller <christian schaller collabora co uk>
Date: Sat Oct 29 18:32:34 2011 +0100
Add explicit test for latest gst-python
src/transmageddon.py | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/transmageddon.py b/src/transmageddon.py
index fc37a80..51dfb5f 100644
--- a/src/transmageddon.py
+++ b/src/transmageddon.py
@@ -50,11 +50,18 @@ except Exception, e:
print e
sys.exit(1)
+major, minor, patch = gst.pygst_version
+if (major == 0) and (patch < 22):
+ print "You need version 0.10.22 or higher of gstreamer-python for Transmageddon"
+ sys.exit(1)
+
major, minor, patch = gobject.pygobject_version
if (major == 2) and (minor < 18):
- print "You need version 2.18.0 or higher of pygobject for Transmageddon"
+ print "You need version 2.18.0 or higher of pygobject for Transmageddon"
sys.exit(1)
+
+
TARGET_TYPE_URI_LIST = 80
dnd_list = [ ( 'text/uri-list', 0, TARGET_TYPE_URI_LIST ) ]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]