[SCM] morituri/master: catch queryerror

js at users.alioth.debian.org js at users.alioth.debian.org
Sun Oct 19 20:09:06 UTC 2014


The following commit has been merged in the master branch:
commit 3c57682a5aab72139d79104a420165cfdae676e6
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date:   Sat Jun 6 11:16:53 2009 +0000

    catch queryerror

diff --git a/morituri/image/image.py b/morituri/image/image.py
index 064b7ba..ff33870 100644
--- a/morituri/image/image.py
+++ b/morituri/image/image.py
@@ -149,7 +149,10 @@ class AudioLengthTask(task.Task):
         sink = self._pipeline.get_by_name('sink')
         assert sink, 'Error constructing pipeline'
 
-        length, format = sink.query_duration(gst.FORMAT_DEFAULT)
+        try:
+            length, format = sink.query_duration(gst.FORMAT_DEFAULT)
+        except gst.QueryError, e:
+            print 'failed to query %s' % self._path
         # wavparse 0.10.14 returns in bytes
         if format == gst.FORMAT_BYTES:
             self.debug('query returned in BYTES format')

-- 
morituri packaging



More information about the pkg-multimedia-commits mailing list