summaryrefslogtreecommitdiff
path: root/src/libsputext
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsputext')
-rw-r--r--src/libsputext/demux_sputext.c20
-rw-r--r--src/libsputext/xine_sputext_decoder.c12
2 files changed, 5 insertions, 27 deletions
diff --git a/src/libsputext/demux_sputext.c b/src/libsputext/demux_sputext.c
index 502ef6580..6e8b1a646 100644
--- a/src/libsputext/demux_sputext.c
+++ b/src/libsputext/demux_sputext.c
@@ -1448,14 +1448,6 @@ static demux_plugin_t *open_demux_plugin (demux_class_t *class_gen, xine_stream_
return NULL;
}
-static const char *get_demux_description (demux_class_t *this_gen) {
- return "sputext demuxer plugin";
-}
-
-static const char *get_demux_identifier (demux_class_t *this_gen) {
- return "sputext";
-}
-
static const char *get_demux_extensions (demux_class_t *this_gen) {
return "asc txt sub srt smi ssa";
}
@@ -1467,12 +1459,6 @@ static const char *get_demux_mimetypes (demux_class_t *this_gen) {
/* "text/plain: asc txt sub srt: VIDEO subtitles;" */
}
-static void demux_class_dispose (demux_class_t *this_gen) {
- demux_sputext_class_t *this = (demux_sputext_class_t *) this_gen;
-
- free (this);
-}
-
static void config_timeout_cb(void *this_gen, xine_cfg_entry_t *entry) {
demux_sputext_class_t *this = (demux_sputext_class_t *)this_gen;
@@ -1488,11 +1474,11 @@ static void *init_sputext_demux_class (xine_t *xine, void *data) {
this = xine_xmalloc (sizeof (demux_sputext_class_t));
this->demux_class.open_plugin = open_demux_plugin;
- this->demux_class.get_description = get_demux_description;
- this->demux_class.get_identifier = get_demux_identifier;
+ this->demux_class.description = N_("sputext demuxer plugin");
+ this->demux_class.identifier = "sputext";
this->demux_class.get_mimetypes = get_demux_mimetypes;
this->demux_class.get_extensions = get_demux_extensions;
- this->demux_class.dispose = demux_class_dispose;
+ this->demux_class.dispose = default_demux_class_dispose;
/*
* Some subtitling formats, namely AQT and Subrip09, define the end of a
diff --git a/src/libsputext/xine_sputext_decoder.c b/src/libsputext/xine_sputext_decoder.c
index dabb2dddc..88977496e 100644
--- a/src/libsputext/xine_sputext_decoder.c
+++ b/src/libsputext/xine_sputext_decoder.c
@@ -887,14 +887,6 @@ static void sputext_class_dispose (spu_decoder_class_t *class_gen) {
free (this);
}
-static char *sputext_class_get_identifier (spu_decoder_class_t *this) {
- return "sputext";
-}
-
-static char *sputext_class_get_description (spu_decoder_class_t *this) {
- return "external subtitle decoder plugin";
-}
-
static void update_src_encoding(void *class_gen, xine_cfg_entry_t *entry)
{
sputext_class_t *class = (sputext_class_t *)class_gen;
@@ -915,8 +907,8 @@ static void *init_spu_decoder_plugin (xine_t *xine, void *data) {
this = (sputext_class_t *) xine_xmalloc (sizeof (sputext_class_t));
this->class.open_plugin = sputext_class_open_plugin;
- this->class.get_identifier = sputext_class_get_identifier;
- this->class.get_description = sputext_class_get_description;
+ this->class.identifier = "sputext";
+ this->class.description = N_("external subtitle decoder plugin");
this->class.dispose = sputext_class_dispose;
this->xine = xine;