From: Guenter B. <gu...@us...> - 2001-07-30 17:13:26
|
Update of /cvsroot/xine/xine-lib/src/libac3 In directory usw-pr-cvs1:/tmp/cvs-serv15873/src/libac3 Modified Files: xine_decoder.c Log Message: fixed video/audio/spu decoder version handling Index: xine_decoder.c =================================================================== RCS file: /cvsroot/xine/xine-lib/src/libac3/xine_decoder.c,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- xine_decoder.c 2001/07/23 23:15:16 1.19 +++ xine_decoder.c 2001/07/30 17:13:21 1.20 @@ -448,17 +448,24 @@ ac3dec_decoder_t *this ; - if (iface_version != 1) + if (iface_version != 2) { + printf( "libac3: plugin doesn't support plugin API version %d.\n" + "libac3: this means there's a version mismatch between xine and this " + "libac3: decoder plugin.\nInstalling current plugins should help.\n", + iface_version); return NULL; + } this = (ac3dec_decoder_t *) malloc (sizeof (ac3dec_decoder_t)); - this->audio_decoder.interface_version = 1; + this->audio_decoder.interface_version = 2; this->audio_decoder.can_handle = ac3dec_can_handle; this->audio_decoder.init = ac3dec_init; this->audio_decoder.decode_data = ac3dec_decode_data; this->audio_decoder.close = ac3dec_close; this->audio_decoder.get_identifier = ac3dec_get_id; + this->audio_decoder.priority = 0; + this->ac3_level = (float) cfg->lookup_int (cfg, "ac3_level", 100) / 100.0; |