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

Fabian Franz FabianFranz at gmx.de
Mon Jan 6 20:14:17 CET 2003


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.

But I don't understand the new one ...

I would think: (HANDLE) is resolved to HANDLE and then multiplicated by 0 ?!

hm, or is it resolved to HANDLE0 but what then ?

Or is it a syntax that in previous: if HANDLE is NULL -1 is returned ...

And now if HANDLE is NULL 0 is returned ? Hm, but then 0 would be superfluous 
...

I'm really confused as I haven't seen such syntax before and couldn't find an 
answer in my books ...

cu

Fabian
>
>
> A'rpi / Astral & ESP-team




More information about the MPlayer-dev-eng mailing list