[pitivi] utils/pipeline: Add a debug statement for stepFrame
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] utils/pipeline: Add a debug statement for stepFrame
- Date: Sun, 2 Sep 2012 04:04:06 +0000 (UTC)
commit b3fa60da5f70bbb7dbf6c792774bbfe8cb1e7de0
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date: Fri Aug 24 11:39:07 2012 -0700
utils/pipeline: Add a debug statement for stepFrame
pitivi/utils/pipeline.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/utils/pipeline.py b/pitivi/utils/pipeline.py
index 685fd18..9e7a462 100644
--- a/pitivi/utils/pipeline.py
+++ b/pitivi/utils/pipeline.py
@@ -510,6 +510,9 @@ class Pipeline(ges.TimelinePipeline, SimplePipeline):
cur_frame = int(round(self.getPosition() * framerate.num / float(gst.SECOND * framerate.denom), 2))
new_frame = cur_frame + frames_offset
new_pos = long(new_frame * gst.SECOND * framerate.denom / framerate.num)
+ Loggable.info(self, "From frame %d to %d at %f fps, seek to %s s" % (cur_frame,
+ new_frame, framerate.num / framerate.denom,
+ new_pos / float(gst.SECOND)))
self.simple_seek(new_pos)
def _seekCb(self, ruler, position, format):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]