From 9e275306172ad34d4e2a2ff0da864b45efc3355d Mon Sep 17 00:00:00 2001 From: Ewald Snel Date: Tue, 23 Apr 2002 15:45:19 +0000 Subject: Increment audio/video/spu decoder and input plugin API version number - update dxr3 and xvid plugins to new interface (add dispose() functions) CVS patchset: 1766 CVS date: 2002/04/23 15:45:19 --- src/libxvid/xine_decoder.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/libxvid/xine_decoder.c') diff --git a/src/libxvid/xine_decoder.c b/src/libxvid/xine_decoder.c index cb5672ba4..2fe2cde70 100644 --- a/src/libxvid/xine_decoder.c +++ b/src/libxvid/xine_decoder.c @@ -228,11 +228,15 @@ static char *xvid_get_id(void) { return "XviD video decoder"; } +static void xvid_dispose (video_decoder_t *this_gen) { + free (this_gen); +} + video_decoder_t *init_video_decoder_plugin (int iface_version, xine_t *xine) { xvid_decoder_t *this; XVID_INIT_PARAM xinit; - if (iface_version != 6) { + if (iface_version != 7) { printf ("xvid: plugin doesn't support plugin API version %d.\n" "xvid: this means there's a version mismatch between xine and this\n" "xvid: decoder plugin. Installing current plugins should help.\n", @@ -260,6 +264,7 @@ video_decoder_t *init_video_decoder_plugin (int iface_version, xine_t *xine) { this->video_decoder.flush = xvid_flush; this->video_decoder.close = xvid_close_plugin; this->video_decoder.get_identifier = xvid_get_id; + this->video_decoder.dispose = xvid_dispose; this->video_decoder.priority = 6; this->frame_size = 0; -- cgit v1.2.3