* morituri/rip/Makefile.am:

* morituri/rip/main.py:
	* morituri/rip/debug.py (added):
	  Add helper command to debug tasks.
	* morituri/common/encode.py:
	  Add debug.
This commit is contained in:
Thomas Vander Stichele
2011-05-24 16:30:41 +00:00
parent 3a42598fa5
commit 9a6af593f8
5 changed files with 81 additions and 3 deletions

View File

@@ -211,7 +211,9 @@ class EncodeTask(gstreamer.GstPipelineTask):
# add a probe so we can track progress
# we connect to level because this gives us offset in samples
srcpad = self._level.get_static_pad('src')
srcpad.add_buffer_probe(self._probe_handler)
self.gst.debug('adding srcpad buffer probe to %r' % srcpad)
ret = srcpad.add_buffer_probe(self._probe_handler)
self.gst.debug('added srcpad buffer probe to %r: %r' % (srcpad, ret))
def _probe_handler(self, pad, buffer):
# update progress based on buffer offset (expected to be in samples)