ftime weirdness - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93) +--- Thread: ftime weirdness (/showthread.php?tid=18408) |
- acidrik - 2006-02-26 hi, i'm trying to add support for live555 library (latest version 2006-02-25). compilation and linking went fine but i'm stuck with a problem involving the function ftime(). here is an exemple to reproduce the problem. edit file osdep/gettimeofday.c (mplayer tree): Quote:#include "../config.h"edit mplayer.c in function mplayer_init (line 1299) to make a call to gettimeofday(): Quote: blit_frame=0;this code should make a double containing seconds.miliseconds when compiled as a windows exe, everything is ok. i get the following log: Quote:gettimeofday: 1140981237 787000when compiled as mplayer.dll and executed on my xbox, xbmc.log tells me: Quote:26-02-2006 19:37:58 debug msg:mplayer_init()the result of the sum stored in the double test is false. does the timeb struct have different sizes on windows and on my xbox ? that would explain the corruption of the sum. is there a way to fix that problem as the function gettimeofday() (so does ftime()) and the trick to store the result in a double is called everytime in the live555 library. thanks. |