summaryrefslogtreecommitdiff
path: root/src/demuxers/demux_vox.c
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-11 15:54:21 +0100
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-11 15:54:21 +0100
commit01bd55e4c0d1bf95421d489b9955cd895ccd85e7 (patch)
tree28086879492cc30d50d3b26a2ef010b4cdc37759 /src/demuxers/demux_vox.c
parent32a70cef7fdce1648d6850dafbe78bee04830429 (diff)
downloadxine-lib-01bd55e4c0d1bf95421d489b9955cd895ccd85e7.tar.gz
xine-lib-01bd55e4c0d1bf95421d489b9955cd895ccd85e7.tar.bz2
Add a default_demux_plugin_dispose macro, and use it when the plugin dispose macro just calls free().
Diffstat (limited to 'src/demuxers/demux_vox.c')
-rw-r--r--src/demuxers/demux_vox.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/demuxers/demux_vox.c b/src/demuxers/demux_vox.c
index 32fe83373..8d5f9e174 100644
--- a/src/demuxers/demux_vox.c
+++ b/src/demuxers/demux_vox.c
@@ -150,12 +150,6 @@ static int demux_vox_seek (demux_plugin_t *this_gen, off_t start_pos, int start_
return this->status;
}
-static void demux_vox_dispose (demux_plugin_t *this_gen) {
- demux_vox_t *this = (demux_vox_t *) this_gen;
-
- free(this);
-}
-
static int demux_vox_get_status (demux_plugin_t *this_gen) {
demux_vox_t *this = (demux_vox_t *) this_gen;
@@ -210,7 +204,7 @@ static demux_plugin_t *open_plugin (demux_class_t *class_gen, xine_stream_t *str
this->demux_plugin.send_headers = demux_vox_send_headers;
this->demux_plugin.send_chunk = demux_vox_send_chunk;
this->demux_plugin.seek = demux_vox_seek;
- this->demux_plugin.dispose = demux_vox_dispose;
+ this->demux_plugin.dispose = default_demux_plugin_dispose;
this->demux_plugin.get_status = demux_vox_get_status;
this->demux_plugin.get_stream_length = demux_vox_get_stream_length;
this->demux_plugin.get_capabilities = demux_vox_get_capabilities;