* examples/ARcue.py:

Error out when the file doesn't exist.
	* morituri/common/task.py:
	  Drag the lake.
	  Clean up prints.
This commit is contained in:
Thomas Vander Stichele
2009-04-11 12:54:45 +00:00
parent 43acc5b6f5
commit 7860fe275b
3 changed files with 10 additions and 11 deletions

View File

@@ -1,3 +1,11 @@
2009-04-11 Thomas Vander Stichele <thomas at apestaart dot org>
* 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 <thomas at apestaart dot org>
* morituri/common/task.py:

View File

@@ -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()

View File

@@ -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