From 7ebe9f4fe4c86ea689c2c6a44377130c2335113d Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Sat, 6 Dec 2008 14:13:55 +0000 Subject: [PATCH] examples/gst-discover: Beautify output of discoverer's duration. Original commit message from CVS: * examples/gst-discover: Beautify output of discoverer's duration. --- ChangeLog | 5 +++++ examples/gst-discover | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 17e78d71a1..9ac87d2c9f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-12-06 Edward Hervey + + * examples/gst-discover: + Beautify output of discoverer's duration. + 2008-12-06 Edward Hervey * testsuite/test_event.py: diff --git a/examples/gst-discover b/examples/gst-discover index 94c448f583..fa630b13f4 100755 --- a/examples/gst-discover +++ b/examples/gst-discover @@ -44,7 +44,7 @@ def succeed(d): pp('video caps', d.videocaps) pp('video width (pixels)', d.videowidth) pp('video height (pixels)', d.videoheight) - pp('video length (ms)', d.videolength / gst.MSECOND) + pp('video length (hh:mm:ss)', gst.TIME_ARGS(d.videolength)) pp('framerate (fps)', '%s/%s' % (d.videorate.num, d.videorate.denom)) pp('has audio', d.is_audio) @@ -54,9 +54,9 @@ def succeed(d): pp('sample rate (Hz)', d.audiorate) pp('sample width (bits)', d.audiowidth) pp('sample depth (bits)', d.audiodepth) - pp('audio length (ms)', d.audiolength / gst.MSECOND) + pp('audio length (hh:mm:ss)', gst.TIME_ARGS(d.audiolength)) pp('audio channels', d.audiochannels) - + sys.exit(0) def discover(path):