Lines 164-177
Link Here
|
164 |
} |
164 |
} |
165 |
|
165 |
|
166 |
set_metadata_ignore_all(); |
166 |
set_metadata_ignore_all(); |
167 |
set_filename( sFilename.c_str() ); |
167 |
// set_filename( sFilename.c_str() ); |
168 |
|
168 |
|
169 |
State s=init(); |
169 |
FLAC__StreamDecoderInitStatus s=init(sFilename.c_str() ); |
170 |
if( s != FLAC__FILE_DECODER_OK ) { |
170 |
// if( s != FLAC__FILE_DECODER_OK ) { |
|
|
171 |
if( s != FLAC__STREAM_DECODER_INIT_STATUS_OK ) { |
171 |
errorLog( "[load] Error in init()" ); |
172 |
errorLog( "[load] Error in init()" ); |
172 |
} |
173 |
} |
173 |
|
174 |
|
174 |
if ( process_until_end_of_file() == false ) { |
175 |
// if ( process_until_end_of_file() == false ) { |
|
|
176 |
if ( process_until_end_of_stream() == false ) { |
175 |
errorLog( "[load] Error in process_until_end_of_file()" ); |
177 |
errorLog( "[load] Error in process_until_end_of_file()" ); |
176 |
} |
178 |
} |
177 |
} |
179 |
} |