summaryrefslogtreecommitdiff
path: root/src/libmpeg2/xine_decoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libmpeg2/xine_decoder.c')
-rw-r--r--src/libmpeg2/xine_decoder.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/libmpeg2/xine_decoder.c b/src/libmpeg2/xine_decoder.c
index c259d9cdd..613dc3010 100644
--- a/src/libmpeg2/xine_decoder.c
+++ b/src/libmpeg2/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.11 2001/07/17 01:59:48 guenter Exp $
+ * $Id: xine_decoder.c,v 1.12 2001/07/30 17:13:21 guenter Exp $
*
* stuff needed to turn libmpeg2 into a xine decoder plugin
*/
@@ -100,17 +100,23 @@ video_decoder_t *init_video_decoder_plugin (int iface_version, config_values_t *
mpeg2dec_decoder_t *this ;
- if (iface_version != 1)
+ if (iface_version != 2) {
+ printf( "libmpeg2: plugin doesn't support plugin API version %d.\n"
+ "libmpeg2: this means there's a version mismatch between xine and this "
+ "libmpeg2: decoder plugin.\nInstalling current plugins should help.\n",
+ iface_version);
return NULL;
+ }
this = (mpeg2dec_decoder_t *) malloc (sizeof (mpeg2dec_decoder_t));
- this->video_decoder.interface_version = 1;
+ this->video_decoder.interface_version = 2;
this->video_decoder.can_handle = mpeg2dec_can_handle;
this->video_decoder.init = mpeg2dec_init;
this->video_decoder.decode_data = mpeg2dec_decode_data;
this->video_decoder.close = mpeg2dec_close;
this->video_decoder.get_identifier = mpeg2dec_get_id;
+ this->video_decoder.priority = 0;
return (video_decoder_t *) this;
}