[MPlayer-dev-eng] [Patch] Loading of Voxware Codec
Fabian Franz
FabianFranz at gmx.de
Mon Jan 6 20:30:18 CET 2003
Am Montag, 6. Januar 2003 20:23 schrieb Dominik Mierzejewski:
> On Monday, 06 January 2003, Fabian Franz wrote:
> > Am Samstag, 4. Januar 2003 12:19 schrieb Arpi:
> > > Hi,
> > >
> > > > Every since mplayer gained the ability of playing the Sorenson 3
> > > > codec (good job guys!), the loading of the DShow Voxware codec have
> > > > been broken. After looking through some of the code (I am not a
> > > > programmer, but I can usually figure out what is going on) I have
> > > > found and fixed the problem. Attached is the fix.
> > >
> > > thank you very much, applied!
> >
> > I don't understand this patch at all ...
> >
> > strcpy(lpfd->cAlternateFileName, "msms001.vwp");
> > - return (HANDLE)-1;
> > + return (HANDLE)0;
> > }
> >
> > I would think this means previous was HANDLE-1 as (HANDLE) is resolved to
> > HANDLE.
>
> [snip total confusion]
>
> > I'm really confused as I haven't seen such syntax before and couldn't
> > find an answer in my books ...
>
> Have you ever done any type-casting?
yes, sure; just didn't think of it as HANDLE appeared as a var or constant to
me ... Ok, now its clear ...
> (type)value or (type)variable gives a value or variable of requested type.
> This is basic C.
of course ...
I seem to be tired ;-)
Thanx!
cu
Fabian
More information about the MPlayer-dev-eng
mailing list