[MPlayer-users] Where to find information about customtex, customprog and fragment programs

Tom Evans tevans.uk at googlemail.com
Thu Apr 29 12:08:25 CEST 2010


On Thu, Apr 29, 2010 at 7:54 AM, Paul Jowett
<paul.jowett at systemic.com.au> wrote:
>>> Especially when trying to get mplayer
>>> to work with customtex files on Windows ("[gl] Error parsing
>>> customtex" is a problem from vo_gl.c).
>>
>> What format is the customtex file in?
>> EIther way it might be fixed.
>>
> I found the problem with loading the customtex file under Windows: the
> vo_gl.c code opens the custom tex file (which I presume will almost always
> be an image file) but doesn't specify binary mode:
>
>    FILE *f = fopen(custom_tex, "r");
>
> Changing this to
>
>    FILE *f = fopen(custom_tex, "rb");
>
> corrects the loading of binary textures.  I'm not sure why the binary
> indicator is not required on MacOSX which happily loads the same image
> textures.
>

OSX, like most (all?) unices, does not have a 'binary mode' for
reading files; binary files are read in the same manner as text files.
Windows does have the distinction, so it would be required there.

Cheers

Tom


More information about the MPlayer-users mailing list