--- hydrogen-0.9.3-orig/src/lib/FLACFile.cpp 2005-11-08 12:31:22 +0300 +++ hydrogen-0.9.3-orig/src/lib/FLACFile.cpp 2007-05-14 13:39:28 +0400 @@ -164,14 +164,16 @@ } set_metadata_ignore_all(); - set_filename( sFilename.c_str() ); +// set_filename( sFilename.c_str() ); - State s=init(); - if( s != FLAC__FILE_DECODER_OK ) { + FLAC__StreamDecoderInitStatus s=init(sFilename.c_str() ); +// if( s != FLAC__FILE_DECODER_OK ) { + if( s != FLAC__STREAM_DECODER_INIT_STATUS_OK ) { errorLog( "[load] Error in init()" ); } - if ( process_until_end_of_file() == false ) { +// if ( process_until_end_of_file() == false ) { + if ( process_until_end_of_stream() == false ) { errorLog( "[load] Error in process_until_end_of_file()" ); } }