[vlc-devel] Patch for C64 SID suppport

Rémi Denis-Courmont remi at remlab.net
Fri Dec 3 17:44:09 CET 2010


On Fri, 3 Dec 2010 00:34:12 +0100, Jean-Baptiste Kempf <jb at videolan.org>
wrote:
>> +#elif SIDPLAY_VERSION==2
>> +    sys->info=player->info();
>> +    sys->config=player->config();
>> +    {
>> +        ReSIDBuilder *resid=new ReSIDBuilder("ReSID");
>> +        if (unlikely(resid == NULL)){
>> +#if SIDPLAY_VERSION==2
> aren't you already in VERSION ==2?
> 
>> +            delete player;
>> +#endif
>> +            delete tune;
>> +            free(sys);
>> +            return VLC_ENOMEM;
>> +        }
>> +        resid->create(sys->info.maxsids);
>> +        resid->sampling(sys->config.frequency);
>> +        sys->config.sidEmulation=resid;
>> +    }
> 
> Why those extra } ?

I guess they're meant to force the resid pointer out of scope.

-- 
Rémi Denis-Courmont
http://www.remlab.net
http://fi.linkedin.com/in/remidenis




More information about the vlc-devel mailing list