Mercurial > SDL_sound_CoreAudio
diff decoders/smpeg.c @ 387:fb519e6028e3
Changed all the Sound_SetError() calls to __Sound_SetError (or BAIL*_MACRO)
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Fri, 05 Jul 2002 23:11:51 +0000 |
parents | cbb15ecf423a |
children | c42ac9ee2ce4 |
line wrap: on
line diff
--- a/decoders/smpeg.c Fri Jul 05 22:34:55 2002 +0000 +++ b/decoders/smpeg.c Fri Jul 05 23:11:51 2002 +0000 @@ -173,16 +173,14 @@ if (SMPEG_error(smpeg)) { - Sound_SetError(SMPEG_error(smpeg)); SMPEG_delete(smpeg); - return(0); + BAIL_MACRO(SMPEG_error(smpeg), 0); } /* if */ if (!smpeg_info.has_audio) { - Sound_SetError("SMPEG: No audio stream found in data."); SMPEG_delete(smpeg); - return(0); + BAIL_MACRO("SMPEG: No audio stream found in data.", 0); } /* if */ SNDDBG(("SMPEG: Accepting data stream.\n")); @@ -247,7 +245,7 @@ sample->flags |= SOUND_SAMPLEFLAG_EOF; else { - Sound_SetError(errMsg); + __Sound_SetError(errMsg); sample->flags |= SOUND_SAMPLEFLAG_ERROR; } /* else */ } /* if */