[xiph-commits] r15052 - trunk/subtle

jmesquita at svn.xiph.org jmesquita at svn.xiph.org
Sat Jun 21 21:45:03 PDT 2008


Author: jmesquita
Date: 2008-06-21 21:45:00 -0700 (Sat, 21 Jun 2008)
New Revision: 15052

Modified:
   trunk/subtle/GPlayer.py
Log:
Do proper math on counting frames

Modified: trunk/subtle/GPlayer.py
===================================================================
--- trunk/subtle/GPlayer.py	2008-06-21 15:58:37 UTC (rev 15051)
+++ trunk/subtle/GPlayer.py	2008-06-22 04:45:00 UTC (rev 15052)
@@ -118,7 +118,7 @@
 			caps = pad.get_negotiated_caps()
 			if caps is not None:
 				framerate = caps[0]['framerate']
-				position = position/1000000000
+				position = float(position)/float(1000000000)
 				self.cur_frame = (float(position)*float(framerate.num))/float(framerate.denom)
 		return self.cur_frame
 



More information about the commits mailing list