diff options
author | Ewald Snel <esnel@users.sourceforge.net> | 2002-04-23 15:45:19 +0000 |
---|---|---|
committer | Ewald Snel <esnel@users.sourceforge.net> | 2002-04-23 15:45:19 +0000 |
commit | 9e275306172ad34d4e2a2ff0da864b45efc3355d (patch) | |
tree | ba23765c87774477b7c07c8f87b2431cd80dd7e4 /src/libxvid/xine_decoder.c | |
parent | 58a896bd275d8fa6925a5c851e0f17e328c676d0 (diff) | |
download | xine-lib-9e275306172ad34d4e2a2ff0da864b45efc3355d.tar.gz xine-lib-9e275306172ad34d4e2a2ff0da864b45efc3355d.tar.bz2 |
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
Diffstat (limited to 'src/libxvid/xine_decoder.c')
-rw-r--r-- | src/libxvid/xine_decoder.c | 7 |
1 files changed, 6 insertions, 1 deletions
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; |