diff --git a/ChangeLog b/ChangeLog index 591db18..06e1599 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2009-04-11 Thomas Vander Stichele + + * examples/ARcue.py: + Error out when the file doesn't exist. + * morituri/common/task.py: + Drag the lake. + Clean up prints. + 2009-04-11 Thomas Vander Stichele * morituri/common/task.py: diff --git a/examples/ARcue.py b/examples/ARcue.py index 73376fa..a71a2dc 100644 --- a/examples/ARcue.py +++ b/examples/ARcue.py @@ -55,9 +55,9 @@ def main(path): frameLength=length * task.FRAMES_PER_DISC_FRAME) if not crctask: - print 'error: path %s not found' % file.path + print 'ERROR: path %s not found' % file.path + continue - print 'Analyzing', file.path, "from CD frame ", offset, length, "CD frames" runner = task.SyncRunner(crctask) runner.run() diff --git a/morituri/common/task.py b/morituri/common/task.py index edfa43d..571de87 100644 --- a/morituri/common/task.py +++ b/morituri/common/task.py @@ -96,7 +96,6 @@ class CRCTask(Task): self._first = None self._last = None self._adapter = gst.Adapter() - self._lake = '' self.crc = None # result @@ -165,16 +164,8 @@ class CRCTask(Task): # FIXME: in 0.10.14.1, take_buffer leaks a ref buffer = self._adapter.take_buffer(SAMPLES_PER_DISC_FRAME) -# self._lake += str(buffer) -# i = 0 -# while len(self._lake) >= (i + 1) * 2532: -# block = self._lake[i * 2532:(i + 1) * 2532] - self._crc = self.do_crc_buffer(buffer, self._crc) self._bytes += len(buffer) -# i += 1 -# if i > 0: -# self._lake = self._lake[i * 2532:] # update progress frame = self._first + self._bytes / 4