update deprecated names

file failing to open is a fatal error
This commit is contained in:
Glenn Maynard
2004-05-21 21:03:38 +00:00
parent 00efa1e6ed
commit 276adb5ecd
2 changed files with 13 additions and 13 deletions
+3 -3
View File
@@ -631,7 +631,7 @@ SoundReader_FileReader::OpenResult RageSoundReader_MP3::Open( CString filename_
if( !file.Open( filename ) )
{
SetError( ssprintf("Couldn't open file: %s", file.GetError().c_str()) );
return OPEN_NO_MATCH;
return OPEN_FATAL_ERROR;
}
mad->filesize = file.GetFileSize();
@@ -645,10 +645,10 @@ SoundReader_FileReader::OpenResult RageSoundReader_MP3::Open( CString filename_
{
case 0:
SetError( "Failed to read any data at all" );
return OPEN_NO_MATCH;
return OPEN_UNKNOWN_FILE_FORMAT;
case -1:
SetError( GetError() + " (not an MP3 stream?)" );
return OPEN_NO_MATCH;
return OPEN_UNKNOWN_FILE_FORMAT;
}
/* Store the bitrate of the frame we just got. */