examples/gst-discover: Beautify output of discoverer's duration.

Original commit message from CVS:
* examples/gst-discover:
Beautify output of discoverer's duration.
This commit is contained in:
Edward Hervey 2008-12-06 14:13:55 +00:00
parent a7d29b2f47
commit 7ebe9f4fe4
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,8 @@
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> 2008-12-06 Edward Hervey <edward.hervey@collabora.co.uk>
* testsuite/test_event.py: * testsuite/test_event.py:

View file

@ -44,7 +44,7 @@ def succeed(d):
pp('video caps', d.videocaps) pp('video caps', d.videocaps)
pp('video width (pixels)', d.videowidth) pp('video width (pixels)', d.videowidth)
pp('video height (pixels)', d.videoheight) 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('framerate (fps)', '%s/%s' % (d.videorate.num, d.videorate.denom))
pp('has audio', d.is_audio) pp('has audio', d.is_audio)
@ -54,7 +54,7 @@ def succeed(d):
pp('sample rate (Hz)', d.audiorate) pp('sample rate (Hz)', d.audiorate)
pp('sample width (bits)', d.audiowidth) pp('sample width (bits)', d.audiowidth)
pp('sample depth (bits)', d.audiodepth) 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) pp('audio channels', d.audiochannels)
sys.exit(0) sys.exit(0)