From 51af8918e439e1223a72ef1a81104a8ebc29623a Mon Sep 17 00:00:00 2001 From: Guenter Bartsch Date: Mon, 30 Jul 2001 19:21:28 +0000 Subject: whoups, looks like a priority of 0 is not allowed :> CVS patchset: 371 CVS date: 2001/07/30 19:21:28 --- src/libmpg123/xine_decoder.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/libmpg123') diff --git a/src/libmpg123/xine_decoder.c b/src/libmpg123/xine_decoder.c index 339b2a0d6..1e3e9e7a3 100644 --- a/src/libmpg123/xine_decoder.c +++ b/src/libmpg123/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.2 2001/06/09 17:07:21 guenter Exp $ + * $Id: xine_decoder.c,v 1.3 2001/07/30 19:21:28 guenter Exp $ * * stuff needed to turn libmpg123 into a xine decoder plugin */ @@ -91,17 +91,24 @@ audio_decoder_t *init_audio_decoder_plugin (int iface_version, config_values_t * mpgdec_decoder_t *this ; - if (iface_version != 1) + if (iface_version != 2) { + printf( "libmpg123: plugin doesn't support plugin API version %d.\n" + "libmpg123: this means there's a version mismatch between xine and this " + "libmpg123: decoder plugin.\nInstalling current plugins should help.\n", + iface_version); + return NULL; + } this = (mpgdec_decoder_t *) malloc (sizeof (mpgdec_decoder_t)); - this->audio_decoder.interface_version = 1; + this->audio_decoder.interface_version = 2; this->audio_decoder.can_handle = mpgdec_can_handle; this->audio_decoder.init = mpgdec_init; this->audio_decoder.decode_data = mpgdec_decode_data; this->audio_decoder.close = mpgdec_close; this->audio_decoder.get_identifier = mpgdec_get_id; + this->audio_decoder.priority = 1; return (audio_decoder_t *) this; } -- cgit v1.2.3