From f16cbec39f3f2455582feb65a0b0bcd089d4eeb5 Mon Sep 17 00:00:00 2001 From: Guenter Bartsch Date: Mon, 30 Jul 2001 17:13:20 +0000 Subject: fixed video/audio/spu decoder version handling CVS patchset: 370 CVS date: 2001/07/30 17:13:20 --- src/libac3/xine_decoder.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/libac3') diff --git a/src/libac3/xine_decoder.c b/src/libac3/xine_decoder.c index a6d81104b..092582463 100644 --- a/src/libac3/xine_decoder.c +++ b/src/libac3/xine_decoder.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine_decoder.c,v 1.19 2001/07/23 23:15:16 f1rmb Exp $ + * $Id: xine_decoder.c,v 1.20 2001/07/30 17:13:21 guenter Exp $ * * stuff needed to turn libac3 into a xine decoder plugin */ @@ -448,17 +448,24 @@ audio_decoder_t *init_audio_decoder_plugin (int iface_version, config_values_t * 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; -- cgit v1.2.3