[MPlayer-dev-eng] [Patch] Loading of Voxware Codec

Dominik Mierzejewski dominik at rangers.eu.org
Mon Jan 6 20:23:15 CET 2003


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?
(type)value or (type)variable gives a value or variable of requested type.
This is basic C.

-- 
MPlayer RPMs maintainer: http://www.piorunek.pl/~dominik/linux/pkgs/mplayer/
"The Universe doesn't give you any points for doing things that are easy."
        -- Sheridan to Garibaldi in Babylon 5:"The Geometry of Shadows"


More information about the MPlayer-dev-eng mailing list