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/libw32dll/w32codec.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/libw32dll') diff --git a/src/libw32dll/w32codec.c b/src/libw32dll/w32codec.c index 6486f2aa9..3348da98d 100644 --- a/src/libw32dll/w32codec.c +++ b/src/libw32dll/w32codec.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: w32codec.c,v 1.12 2001/07/24 12:57:29 guenter Exp $ + * $Id: w32codec.c,v 1.13 2001/07/30 17:13:21 guenter Exp $ * * routines for using w32 codecs * @@ -586,7 +586,7 @@ video_decoder_t *init_video_decoder_plugin (int iface_version, config_values_t * w32v_decoder_t *this ; - if (iface_version != 1) { + if (iface_version != 2) { printf( "w32codec: plugin doesn't support plugin API version %d.\n" "w32codec: this means there's a version mismatch between xine and this " "w32codec: decoder plugin.\nInstalling current input plugins should help.\n", @@ -599,12 +599,13 @@ video_decoder_t *init_video_decoder_plugin (int iface_version, config_values_t * this = (w32v_decoder_t *) malloc (sizeof (w32v_decoder_t)); - this->video_decoder.interface_version = 1; + this->video_decoder.interface_version = 2; this->video_decoder.can_handle = w32v_can_handle; this->video_decoder.init = w32v_init; this->video_decoder.decode_data = w32v_decode_data; this->video_decoder.close = w32v_close; this->video_decoder.get_identifier = w32v_get_id; + this->video_decoder.priority = 0; return (video_decoder_t *) this; } @@ -613,7 +614,7 @@ audio_decoder_t *init_audio_decoder_plugin (int iface_version, config_values_t * w32a_decoder_t *this ; - if (iface_version != 1) { + if (iface_version != 2) { printf( "w32codec: plugin doesn't support plugin API version %d.\n" "w32codec: this means there's a version mismatch between xine and this " "w32codec: decoder plugin.\nInstalling current input plugins should help.\n", @@ -626,12 +627,13 @@ audio_decoder_t *init_audio_decoder_plugin (int iface_version, config_values_t * this = (w32a_decoder_t *) malloc (sizeof (w32a_decoder_t)); - this->audio_decoder.interface_version = 1; + this->audio_decoder.interface_version = 2; this->audio_decoder.can_handle = w32a_can_handle; this->audio_decoder.init = w32a_init; this->audio_decoder.decode_data = w32a_decode_data; this->audio_decoder.close = w32a_close; this->audio_decoder.get_identifier = w32a_get_id; + this->audio_decoder.priority = 0; return (audio_decoder_t *) this; } -- cgit v1.2.3