comparison decoders/smpeg.c @ 358:f11c10ffa31a

Fixed some debug messages.
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 11 Jun 2002 23:33:02 +0000
parents 069ce624d6cf
children cbb15ecf423a
comparison
equal deleted inserted replaced
357:b3ac77d08e79 358:f11c10ffa31a
144 if (__Sound_strcasecmp(ext, "MP3") != 0) 144 if (__Sound_strcasecmp(ext, "MP3") != 0)
145 { 145 {
146 Uint8 mp3_magic[2]; 146 Uint8 mp3_magic[2];
147 147
148 if (SDL_RWread(internal->rw, mp3_magic, sizeof (mp3_magic), 1) != 1) 148 if (SDL_RWread(internal->rw, mp3_magic, sizeof (mp3_magic), 1) != 1)
149 BAIL_MACRO("MP3: Could not read MP3 magic.", 0); 149 BAIL_MACRO("SMPEG: Could not read MP3 magic.", 0);
150 150
151 if (mp3_magic[0] != 0xFF || (mp3_magic[1] & 0xF0) != 0xF0) 151 if (mp3_magic[0] != 0xFF || (mp3_magic[1] & 0xF0) != 0xF0)
152 BAIL_MACRO("MP3: Not an MP3 stream.", 0); 152 BAIL_MACRO("SMPEG: Not an MP3 stream.", 0);
153 153
154 /* If the seek fails, we'll probably miss a frame, but oh well */ 154 /* If the seek fails, we'll probably miss a frame, but oh well */
155 SDL_RWseek(internal->rw, -sizeof (mp3_magic), SEEK_CUR); 155 SDL_RWseek(internal->rw, -sizeof (mp3_magic), SEEK_CUR);
156 } /* if */ 156 } /* if */
157 157