summaryrefslogtreecommitdiff
path: root/src/libffmpeg
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/libffmpeg
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/libffmpeg')
-rw-r--r--src/libffmpeg/ff_audio_decoder.c12
-rw-r--r--src/libffmpeg/ff_dvaudio_decoder.c12
-rw-r--r--src/libffmpeg/ff_video_decoder.c12
3 files changed, 6 insertions, 30 deletions
diff --git a/src/libffmpeg/ff_audio_decoder.c b/src/libffmpeg/ff_audio_decoder.c
index b9762c66b..bbfb07c6e 100644
--- a/src/libffmpeg/ff_audio_decoder.c
+++ b/src/libffmpeg/ff_audio_decoder.c
@@ -415,14 +415,6 @@ static audio_decoder_t *ff_audio_open_plugin (audio_decoder_class_t *class_gen,
return &this->audio_decoder;
}
-static char *ff_audio_get_identifier (audio_decoder_class_t *this) {
- return "ffmpeg audio";
-}
-
-static char *ff_audio_get_description (audio_decoder_class_t *this) {
- return "ffmpeg based audio decoder plugin";
-}
-
static void ff_audio_dispose_class (audio_decoder_class_t *this) {
free (this);
}
@@ -434,8 +426,8 @@ void *init_audio_plugin (xine_t *xine, void *data) {
this = (ff_audio_class_t *) xine_xmalloc (sizeof (ff_audio_class_t));
this->decoder_class.open_plugin = ff_audio_open_plugin;
- this->decoder_class.get_identifier = ff_audio_get_identifier;
- this->decoder_class.get_description = ff_audio_get_description;
+ this->decoder_class.identifier = "ffmpeg audio";
+ this->decoder_class.description = _("ffmpeg based audio decoder plugin");
this->decoder_class.dispose = ff_audio_dispose_class;
pthread_once( &once_control, init_once_routine );
diff --git a/src/libffmpeg/ff_dvaudio_decoder.c b/src/libffmpeg/ff_dvaudio_decoder.c
index 08ddf4e30..0eb0d2732 100644
--- a/src/libffmpeg/ff_dvaudio_decoder.c
+++ b/src/libffmpeg/ff_dvaudio_decoder.c
@@ -377,14 +377,6 @@ static audio_decoder_t *dvaudio_open_plugin (audio_decoder_class_t *class_gen, x
return &this->audio_decoder;
}
-static char *dvaudio_get_identifier (audio_decoder_class_t *this) {
- return "dv audio";
-}
-
-static char *dvaudio_get_description (audio_decoder_class_t *this) {
- return "dv audio decoder plugin";
-}
-
static void dvaudio_dispose_class (audio_decoder_class_t *this) {
free (this);
}
@@ -396,8 +388,8 @@ static void *init_dvaudio_plugin (xine_t *xine, void *data) {
this = (dvaudio_class_t *) xine_xmalloc (sizeof (dvaudio_class_t));
this->decoder_class.open_plugin = dvaudio_open_plugin;
- this->decoder_class.get_identifier = dvaudio_get_identifier;
- this->decoder_class.get_description = dvaudio_get_description;
+ this->decoder_class.identifier = "dv audio";
+ this->decoder_class.description = _("dv audio decoder plugin");
this->decoder_class.dispose = dvaudio_dispose_class;
return this;
diff --git a/src/libffmpeg/ff_video_decoder.c b/src/libffmpeg/ff_video_decoder.c
index df0973030..9b55db919 100644
--- a/src/libffmpeg/ff_video_decoder.c
+++ b/src/libffmpeg/ff_video_decoder.c
@@ -1524,14 +1524,6 @@ static video_decoder_t *ff_video_open_plugin (video_decoder_class_t *class_gen,
return &this->video_decoder;
}
-static char *ff_video_get_identifier (video_decoder_class_t *this) {
- return "ffmpeg video";
-}
-
-static char *ff_video_get_description (video_decoder_class_t *this) {
- return "ffmpeg based video decoder plugin";
-}
-
static void ff_video_dispose_class (video_decoder_class_t *this) {
free (this);
}
@@ -1544,8 +1536,8 @@ void *init_video_plugin (xine_t *xine, void *data) {
this = (ff_video_class_t *) xine_xmalloc (sizeof (ff_video_class_t));
this->decoder_class.open_plugin = ff_video_open_plugin;
- this->decoder_class.get_identifier = ff_video_get_identifier;
- this->decoder_class.get_description = ff_video_get_description;
+ this->decoder_class.identifier = "ffmpeg video";
+ this->decoder_class.description = _("ffmpeg based video decoder plugin");
this->decoder_class.dispose = ff_video_dispose_class;
this->xine = xine;