summaryrefslogtreecommitdiff
path: root/src/libw32dll
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-11 13:26:26 +0100
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-11 13:26:26 +0100
commit78fc25b90a9659048ba3a9a178a45a3e536765f2 (patch)
tree611a2c1de323323a3ee889c14b7c5de8500acdc1 /src/libw32dll
parentf8bd5f9976485960fa7b2ffd1ca2a347044b38ea (diff)
downloadxine-lib-78fc25b90a9659048ba3a9a178a45a3e536765f2.tar.gz
xine-lib-78fc25b90a9659048ba3a9a178a45a3e536765f2.tar.bz2
Update all misc plugins to the new identifier/description interface. Add _() where missing, for i18n.
Diffstat (limited to 'src/libw32dll')
-rw-r--r--src/libw32dll/qt_decoder.c24
-rw-r--r--src/libw32dll/w32codec.c24
2 files changed, 8 insertions, 40 deletions
diff --git a/src/libw32dll/qt_decoder.c b/src/libw32dll/qt_decoder.c
index 3053b2b68..2bb5286b2 100644
--- a/src/libw32dll/qt_decoder.c
+++ b/src/libw32dll/qt_decoder.c
@@ -570,14 +570,6 @@ static audio_decoder_t *qta_open_plugin (audio_decoder_class_t *class_gen,
* qta plugin class
*/
-static char *qta_get_identifier (audio_decoder_class_t *this) {
- return "qta";
-}
-
-static char *qta_get_description (audio_decoder_class_t *this) {
- return "quicktime audio decoder plugin";
-}
-
static void qta_dispose_class (audio_decoder_class_t *this) {
free (this);
}
@@ -595,8 +587,8 @@ static void *qta_init_class (xine_t *xine, void *data) {
this = (qta_class_t *) xine_xmalloc (sizeof (qta_class_t));
this->decoder_class.open_plugin = qta_open_plugin;
- this->decoder_class.get_identifier = qta_get_identifier;
- this->decoder_class.get_description = qta_get_description;
+ this->decoder_class.identifier = "qta";
+ this->decoder_class.description = _("quicktime audio decoder plugin");
this->decoder_class.dispose = qta_dispose_class;
return this;
@@ -1081,14 +1073,6 @@ static video_decoder_t *qtv_open_plugin (video_decoder_class_t *class_gen,
* qtv plugin class
*/
-static char *qtv_get_identifier (video_decoder_class_t *this) {
- return "qtvdec";
-}
-
-static char *qtv_get_description (video_decoder_class_t *this) {
- return "quicktime binary-only codec based video decoder plugin";
-}
-
static void qtv_dispose_class (video_decoder_class_t *this) {
free (this);
}
@@ -1119,8 +1103,8 @@ static void *qtv_init_class (xine_t *xine, void *data) {
this = (qtv_class_t *) xine_xmalloc (sizeof (qtv_class_t));
this->decoder_class.open_plugin = qtv_open_plugin;
- this->decoder_class.get_identifier = qtv_get_identifier;
- this->decoder_class.get_description = qtv_get_description;
+ this->decoder_class.identifier = "qtvdec";
+ this->decoder_class.description = _("quicktime binary-only codec based video decoder plugin");
this->decoder_class.dispose = qtv_dispose_class;
return this;
diff --git a/src/libw32dll/w32codec.c b/src/libw32dll/w32codec.c
index 88790ebc7..48556f4ad 100644
--- a/src/libw32dll/w32codec.c
+++ b/src/libw32dll/w32codec.c
@@ -1568,14 +1568,6 @@ static video_decoder_t *open_video_decoder_plugin (video_decoder_class_t *class_
* video decoder class
*/
-static char *get_video_identifier (video_decoder_class_t *this) {
- return "w32v";
-}
-
-static char *get_video_description (video_decoder_class_t *this) {
- return "win32 binary video codec plugin";
-}
-
static void dispose_video_class (video_decoder_class_t *this) {
free (this);
}
@@ -1596,8 +1588,8 @@ static void *init_video_decoder_class (xine_t *xine, void *data) {
this = (w32v_class_t *) xine_xmalloc (sizeof (w32v_class_t));
this->decoder_class.open_plugin = open_video_decoder_plugin;
- this->decoder_class.get_identifier = get_video_identifier;
- this->decoder_class.get_description = get_video_description;
+ this->decoder_class.identifier = "w32v";
+ this->decoder_class.description = _("win32 binary video codec plugin");
this->decoder_class.dispose = dispose_video_class;
pthread_once (&once_control, init_routine);
@@ -1635,14 +1627,6 @@ static audio_decoder_t *open_audio_decoder_plugin (audio_decoder_class_t *class_
* audio decoder plugin class
*/
-static char *get_identifier (audio_decoder_class_t *this) {
- return "win32 audio";
-}
-
-static char *get_description (audio_decoder_class_t *this) {
- return "win32 binary audio codec plugin";
-}
-
static void dispose_class (audio_decoder_class_t *this) {
free (this);
}
@@ -1658,8 +1642,8 @@ static void *init_audio_decoder_class (xine_t *xine, void *data) {
this = (w32a_class_t *) xine_xmalloc (sizeof (w32a_class_t));
this->decoder_class.open_plugin = open_audio_decoder_plugin;
- this->decoder_class.get_identifier = get_identifier;
- this->decoder_class.get_description = get_description;
+ this->decoder_class.identifier = "win32 audio";
+ this->decoder_class.description = _("win32 binary audio codec plugin");
this->decoder_class.dispose = dispose_class;
pthread_once (&once_control, init_routine);