[MPlayer-dev-eng] mingw32 large file support
Gianluigi Tiesi
mplayer at netfarm.it
Mon Jan 30 08:20:01 CET 2006
On Thu, Jan 26, 2006 at 02:12:32AM +0100, Felix Buenemann wrote:
> Hi,
>
> I've discovered that on mingw32 off_t is always 4 bytes, wereas only
> off64_t delivers 8 bytes, so large file support in MPlayer-mingw32 is
> totally broken (this mit also apply to some file handling functions,
> I'll till have to check that).
> Anyone has a good idea how to fix this without
> rewriting the entire code in MPlayer?
>
> --
I've made some tricks that are modifying a mingw header
(degine off_t to long long) and a patch picked around
the net that uses createfile and other native win32 api.
It currently works but it's almost an hack,
a better patch can be made for mplayer, but
I always refused to do it because this is a bug of mingw
headers, but they never fixed it, currently there is no
way to tell the compiler to use 64bit file function
except by explicit using it.
There are no ifdefs that check largefile support.
Bye
--
Gianluigi Tiesi <sherpya at netfarm.it>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/
More information about the MPlayer-dev-eng
mailing list