bilboed gst-python: gst-python/ gst-python/examples/

[email protected] Sat, 6 Dec 2008 06:14:09 -0800 (PST)
Newsgroups gmane.comp.video.gstreamer.cvs
Message-ID <[email protected]>
CVS Root:       /cvs/gstreamer
Module:         gst-python
Changes by:     bilboed
Date:           Sat Dec 06 2008  14:14:09 UTC

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

Modified files:
    .               : ChangeLog
    examples        : gst-discover

Links:
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-python/ChangeLog.diff?r1=1.695&r2=1.696
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-python/examples/gst-discover.diff?r1=1.2&r2=1.3

====Begin Diffs====
Index: ChangeLog
===================================================================
RCS file: /cvs/gstreamer/gst-python/ChangeLog,v
retrieving revision 1.695
retrieving revision 1.696
diff -u -d -r1.695 -r1.696
--- ChangeLog	6 Dec 2008 14:10:50 -0000	1.695
+++ ChangeLog	6 Dec 2008 14:13:55 -0000	1.696
@@ -1,5 +1,10 @@
 2008-12-06  Edward Hervey  <[email protected]>
 
+	* examples/gst-discover:
+	Beautify output of discoverer's duration.
+
+2008-12-06  Edward Hervey  <[email protected]>
 	* testsuite/test_event.py:
 	Sinks now send GST_EVENT_LATENCY events upstream. Adapt test for that
 	new behaviour.
Index: gst-discover
RCS file: /cvs/gstreamer/gst-python/examples/gst-discover,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- gst-discover	27 Jul 2007 11:04:55 -0000	1.2
+++ gst-discover	6 Dec 2008 14:13:55 -0000	1.3
@@ -44,7 +44,7 @@
         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 @@
         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):

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/