summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2008-12-06 14:13:55 +0000
committerEdward Hervey <bilboed@bilboed.com>2008-12-06 14:13:55 +0000
commit7ebe9f4fe4c86ea689c2c6a44377130c2335113d (patch)
treefada87d269bbbab80f474b802b62911819d83b26
parenta7d29b2f47ed8d4b805546acad9bcf53d69a8b44 (diff)
examples/gst-discover: Beautify output of discoverer's duration.
Original commit message from CVS: * examples/gst-discover: Beautify output of discoverer's duration.
-rw-r--r--ChangeLog5
-rwxr-xr-xexamples/gst-discover6
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 17e78d7..9ac87d2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2008-12-06 Edward Hervey <edward.hervey@collabora.co.uk>
+ * examples/gst-discover:
+ Beautify output of discoverer's duration.
+
+2008-12-06 Edward Hervey <edward.hervey@collabora.co.uk>
+
* testsuite/test_event.py:
Sinks now send GST_EVENT_LATENCY events upstream. Adapt test for that
new behaviour.
diff --git a/examples/gst-discover b/examples/gst-discover
index 94c448f..fa630b1 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):