summaryrefslogtreecommitdiff
path: root/src/combined/xine_ogg_demuxer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/combined/xine_ogg_demuxer.c')
-rw-r--r--src/combined/xine_ogg_demuxer.c40
1 files changed, 6 insertions, 34 deletions
diff --git a/src/combined/xine_ogg_demuxer.c b/src/combined/xine_ogg_demuxer.c
index 2a69c4da2..6f8dbe658 100644
--- a/src/combined/xine_ogg_demuxer.c
+++ b/src/combined/xine_ogg_demuxer.c
@@ -2117,14 +2117,6 @@ static demux_plugin_t *ogg_open_plugin (demux_class_t *class_gen,
* Annodex demuxer class
*/
-static const char *anx_get_description (demux_class_t *this_gen) {
- return "Annodex demux plugin";
-}
-
-static const char *anx_get_identifier (demux_class_t *this_gen) {
- return "Annodex";
-}
-
static const char *anx_get_extensions (demux_class_t *this_gen) {
return "anx axa axv";
}
@@ -2133,23 +2125,17 @@ static const char *anx_get_mimetypes (demux_class_t *this_gen) {
return "application/x-annodex: ogg: Annodex media;";
}
-static void anx_class_dispose (demux_class_t *this_gen) {
- demux_anx_class_t *this = (demux_anx_class_t *) this_gen;
-
- free (this);
-}
-
static void *anx_init_class (xine_t *xine, void *data) {
demux_anx_class_t *this;
this = xine_xmalloc (sizeof (demux_anx_class_t));
this->demux_class.open_plugin = anx_open_plugin;
- this->demux_class.get_description = anx_get_description;
- this->demux_class.get_identifier = anx_get_identifier;
+ this->demux_class.description = N_("Annodex demux plugin");
+ this->demux_class.identifier = "Annodex";
this->demux_class.get_mimetypes = anx_get_mimetypes;
this->demux_class.get_extensions = anx_get_extensions;
- this->demux_class.dispose = anx_class_dispose;
+ this->demux_class.dispose = default_demux_class_dispose;
return this;
}
@@ -2158,14 +2144,6 @@ static void *anx_init_class (xine_t *xine, void *data) {
* ogg demuxer class
*/
-static const char *ogg_get_description (demux_class_t *this_gen) {
- return "OGG demux plugin";
-}
-
-static const char *ogg_get_identifier (demux_class_t *this_gen) {
- return "OGG";
-}
-
static const char *ogg_get_extensions (demux_class_t *this_gen) {
return "ogg ogm spx";
}
@@ -2177,23 +2155,17 @@ static const char *ogg_get_mimetypes (demux_class_t *this_gen) {
"application/ogg: ogg: Ogg Stream;";
}
-static void ogg_class_dispose (demux_class_t *this_gen) {
- demux_ogg_class_t *this = (demux_ogg_class_t *) this_gen;
-
- free (this);
-}
-
static void *ogg_init_class (xine_t *xine, void *data) {
demux_ogg_class_t *this;
this = xine_xmalloc (sizeof (demux_ogg_class_t));
this->demux_class.open_plugin = ogg_open_plugin;
- this->demux_class.get_description = ogg_get_description;
- this->demux_class.get_identifier = ogg_get_identifier;
+ this->demux_class.description = N_("OGG demux plugin");
+ this->demux_class.identifier = "OGG";
this->demux_class.get_mimetypes = ogg_get_mimetypes;
this->demux_class.get_extensions = ogg_get_extensions;
- this->demux_class.dispose = ogg_class_dispose;
+ this->demux_class.dispose = default_demux_class_dispose;
return this;
}