[Scummvm-devel] VorbisInputStream ctr & check catch

Max Horn max at quendi.de
Wed Feb 3 10:31:14 CET 2010


Am 03.02.2010 um 10:00 schrieb Johannes Schickel:

> Hi,
>
> I just committed a fix for this. Now both Vorbis and FLAC factories
> return 0 again, when opening the stream failed. The only one missing
> here is the MP3 factory, since as far as I can tell, there's currently
> no way to tell that creating an MP3 stream failed.

One could check the value of _stream->error:

  if (_stream->error  && !MAD_RECOVERABLE(_stream->error))
    decoding failed

Cheers,
Max





More information about the Scummvm-devel mailing list