[SCM] morituri/master: raise an exception for this error
js at users.alioth.debian.org
js at users.alioth.debian.org
Sun Oct 19 20:09:53 UTC 2014
The following commit has been merged in the master branch:
commit 0735c716d1ec6dc138a1a103379ee81ed467b9c5
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date: Fri Jan 18 19:23:52 2013 +0100
raise an exception for this error
diff --git a/morituri/common/checksum.py b/morituri/common/checksum.py
index b027be5..9a943e1 100644
--- a/morituri/common/checksum.py
+++ b/morituri/common/checksum.py
@@ -163,8 +163,11 @@ class ChecksumTask(log.Loggable, gstreamer.GstPipelineTask):
self.debug("checksum: %08X", self._checksum)
self.debug("bytes: %d", self._bytes)
if self._frameEnd != last:
- print 'ERROR: did not get all frames, %d of %d missing' % (
+ msg = 'did not get all frames, %d of %d missing' % (
self._frameEnd - last, self._frameEnd)
+ self.warning(msg)
+ self.setException(common.MissingFrames(msg))
+ return
self.checksum = self._checksum
diff --git a/morituri/common/common.py b/morituri/common/common.py
index 7245179..6b6ff65 100644
--- a/morituri/common/common.py
+++ b/morituri/common/common.py
@@ -170,6 +170,12 @@ class MissingDependencyException(Exception):
class EmptyError(Exception):
pass
+class MissingFrames(Exception):
+ """
+ Less frames decoded than expected.
+ """
+ pass
+
def shrinkPath(path):
"""
--
morituri packaging
More information about the pkg-multimedia-commits
mailing list