comparison src/flacng/plugin.c @ 1246:626f78ff2439

- Add FLAC 1.1.2 compatibility
author sun@fc5-buildsys
date Thu, 12 Jul 2007 19:30:31 +0200
parents 085c579ba08a
children 37598c8f4425
comparison
equal deleted inserted replaced
1243:4cf6ccace89c 1246:626f78ff2439
140 eof_callback, 140 eof_callback,
141 write_callback, 141 write_callback,
142 metadata_callback, 142 metadata_callback,
143 error_callback, 143 error_callback,
144 test_info))) { 144 test_info))) {
145 _ERROR("Could not initialize test FLAC decoder: %s(%d)", StreamDecoderInitState(ret), ret); 145 _ERROR("Could not initialize test FLAC decoder: %s(%d)",
146 FLAC__StreamDecoderInitStatusString[ret], ret);
146 _LEAVE; 147 _LEAVE;
147 } 148 }
148 149
149 if (FLAC__STREAM_DECODER_INIT_STATUS_OK != (ret = FLAC__stream_decoder_init_stream( 150 if (FLAC__STREAM_DECODER_INIT_STATUS_OK != (ret = FLAC__stream_decoder_init_stream(
150 main_decoder, 151 main_decoder,
155 eof_callback, 156 eof_callback,
156 write_callback, 157 write_callback,
157 metadata_callback, 158 metadata_callback,
158 error_callback, 159 error_callback,
159 main_info))) { 160 main_info))) {
160 _ERROR("Could not initialize main FLAC decoder: %s(%d)", StreamDecoderInitState(ret), ret); 161 _ERROR("Could not initialize main FLAC decoder: %s(%d)",
162 FLAC__StreamDecoderInitStatusString[ret], ret);
161 _LEAVE; 163 _LEAVE;
162 } 164 }
163 165
164 /* 166 /*
165 * Initialize the play loop mutex 167 * Initialize the play loop mutex