[pitivi] utils: Clean up the probe event handler



commit cde929585be0ec0560a8eb5e2c2cf84f19ecd79a
Author: Edward Hervey <bilboed bilboed com>
Date:   Sat Jun 20 17:13:24 2009 +0200

    utils: Clean up the probe event handler

 pitivi/utils.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/utils.py b/pitivi/utils.py
index 4928743..aa914ee 100644
--- a/pitivi/utils.py
+++ b/pitivi/utils.py
@@ -172,7 +172,10 @@ def data_probe(pad, data, section=""):
     else:
         log.debug("probe","%s EVENT %s", section, data.type)
         if data.type == gst.EVENT_NEWSEGMENT:
-            log.debug("probe","%s %r", section, list(data.parse_new_segment()))
+            upd, rat, fmt, start, stop, pos = data.parse_new_segment()
+            log.debug("probe","%s Update:%r rate:%f fmt:%s, start:%s, stop:%s, pos:%s",
+                      section, upd, rat, fmt, gst.TIME_ARGS(start),
+                      gst.TIME_ARGS(stop), gst.TIME_ARGS(pos))
     return True
 
 def linkDynamic(element, target):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]