summaryrefslogtreecommitdiff
path: root/src/libspudec/xine_spu_decoder.c
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-11 15:40:37 +0100
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-11 15:40:37 +0100
commit32a70cef7fdce1648d6850dafbe78bee04830429 (patch)
tree537db314667778898110667991063cd9a915e304 /src/libspudec/xine_spu_decoder.c
parent448923a2d401f3e21eb586f50c1ca9e2dd6259d9 (diff)
downloadxine-lib-32a70cef7fdce1648d6850dafbe78bee04830429.tar.gz
xine-lib-32a70cef7fdce1648d6850dafbe78bee04830429.tar.bz2
Use default_*_class_dispose macro whenever the class dispose function only called free().
Diffstat (limited to 'src/libspudec/xine_spu_decoder.c')
-rw-r--r--src/libspudec/xine_spu_decoder.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/libspudec/xine_spu_decoder.c b/src/libspudec/xine_spu_decoder.c
index d5c5d8c04..05567b68d 100644
--- a/src/libspudec/xine_spu_decoder.c
+++ b/src/libspudec/xine_spu_decoder.c
@@ -350,14 +350,6 @@ static spu_decoder_t *open_plugin (spu_decoder_class_t *class_gen, xine_stream_t
return &this->spu_decoder;
}
-static void dispose_class (spu_decoder_class_t *this) {
-#ifdef LOG_DEBUG
- printf ("libspudec:dispose_class called\n");
-#endif
- free (this);
-}
-
-
static void *init_plugin (xine_t *xine, void *data) {
spudec_class_t *this;
@@ -367,7 +359,7 @@ static void *init_plugin (xine_t *xine, void *data) {
this->decoder_class.open_plugin = open_plugin;
this->decoder_class.identifier = "spudec";
this->decoder_class.description = N_("DVD/VOB SPU decoder plugin");
- this->decoder_class.dispose = dispose_class;
+ this->decoder_class.dispose = default_spu_decoder_class_dispose;
lprintf ("libspudec:init_plugin called\n");
return this;