diff options
| author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-12-11 13:26:26 +0100 |
|---|---|---|
| committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-12-11 13:26:26 +0100 |
| commit | 78fc25b90a9659048ba3a9a178a45a3e536765f2 (patch) | |
| tree | 611a2c1de323323a3ee889c14b7c5de8500acdc1 /src/vdr | |
| parent | f8bd5f9976485960fa7b2ffd1ca2a347044b38ea (diff) | |
| download | xine-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/vdr')
| -rw-r--r-- | src/vdr/input_vdr.c | 14 | ||||
| -rw-r--r-- | src/vdr/post_vdr.h | 16 | ||||
| -rw-r--r-- | src/vdr/post_vdr_audio.c | 16 | ||||
| -rw-r--r-- | src/vdr/post_vdr_video.c | 16 |
4 files changed, 9 insertions, 53 deletions
diff --git a/src/vdr/input_vdr.c b/src/vdr/input_vdr.c index 069eb734a..9a1ec0f8e 100644 --- a/src/vdr/input_vdr.c +++ b/src/vdr/input_vdr.c @@ -2628,16 +2628,6 @@ static input_plugin_t *vdr_class_get_instance(input_class_t *cls_gen, xine_strea * vdr input plugin class stuff */ -static const char *vdr_class_get_description(input_class_t *this_gen) -{ - return _("VDR display device plugin"); -} - -static const char *vdr_class_get_identifier (input_class_t *this_gen) -{ - return "VDR"; -} - static void vdr_class_dispose (input_class_t *this_gen) { vdr_input_class_t *this = (vdr_input_class_t *)this_gen; @@ -2668,8 +2658,8 @@ static void *init_class(xine_t *xine, void *data) this->mrls[ 1 ] = 0; this->input_class.get_instance = vdr_class_get_instance; - this->input_class.get_identifier = vdr_class_get_identifier; - this->input_class.get_description = vdr_class_get_description; + this->input_class.identifier = "VDR"; + this->input_class.description = _("VDR display device plugin"); this->input_class.get_dir = NULL; this->input_class.get_autoplay_list = vdr_class_get_autoplay_list; this->input_class.dispose = vdr_class_dispose; diff --git a/src/vdr/post_vdr.h b/src/vdr/post_vdr.h index b16a2d2df..46aa8dcb3 100644 --- a/src/vdr/post_vdr.h +++ b/src/vdr/post_vdr.h @@ -62,19 +62,9 @@ inline static int vdr_is_vdr_stream(xine_stream_t *stream) return 0; } - { - input_class_t *input_class = stream->input_plugin->input_class; - - if (input_class->get_identifier) - { - const char *identifier = input_class->get_identifier(input_class); - if (identifier - && 0 == strcmp(identifier, "VDR")) - { - return 1; - } - } - } + if (stream->input_plugin->input_class->identifier && + strcmp(stream->input_plugin->input_class->identifier, "VDR")) + return 1; return 0; } diff --git a/src/vdr/post_vdr_audio.c b/src/vdr/post_vdr_audio.c index 9248e9c45..6ebefd70e 100644 --- a/src/vdr/post_vdr_audio.c +++ b/src/vdr/post_vdr_audio.c @@ -58,8 +58,6 @@ static void vdr_audio_select_audio(vdr_audio_post_plugin_t *this, uint8_t channe static post_plugin_t *vdr_audio_open_plugin(post_class_t *class_gen, int inputs, xine_audio_port_t **audio_target, xine_video_port_t **video_target); -static char *vdr_audio_get_identifier(post_class_t *class_gen); -static char *vdr_audio_get_description(post_class_t *class_gen); static void vdr_audio_class_dispose(post_class_t *class_gen); /* plugin instance functions */ @@ -80,8 +78,8 @@ void *vdr_audio_init_plugin(xine_t *xine, void *data) return NULL; class->open_plugin = vdr_audio_open_plugin; - class->get_identifier = vdr_audio_get_identifier; - class->get_description = vdr_audio_get_description; + class->identifier = "vdr_audio"; + class->description = _("modifies every audio frame as requested by VDR"); class->dispose = vdr_audio_class_dispose; return class; @@ -120,16 +118,6 @@ fprintf(stderr, "~~~~~~~~~~ vdr open plugin\n"); return &this->post_plugin; } -static char *vdr_audio_get_identifier(post_class_t *class_gen) -{ - return "vdr_audio"; -} - -static char *vdr_audio_get_description(post_class_t *class_gen) -{ - return "modifies every audio frame as requested by VDR"; -} - static void vdr_audio_class_dispose(post_class_t *class_gen) { free(class_gen); diff --git a/src/vdr/post_vdr_video.c b/src/vdr/post_vdr_video.c index 85536819a..ae02c31e0 100644 --- a/src/vdr/post_vdr_video.c +++ b/src/vdr/post_vdr_video.c @@ -81,8 +81,6 @@ static void vdr_video_set_video_window(vdr_video_post_plugin_t *this, int32_t x, static post_plugin_t *vdr_video_open_plugin(post_class_t *class_gen, int inputs, xine_audio_port_t **audio_target, xine_video_port_t **video_target); -static char *vdr_video_get_identifier(post_class_t *class_gen); -static char *vdr_video_get_description(post_class_t *class_gen); static void vdr_video_class_dispose(post_class_t *class_gen); /* plugin instance functions */ @@ -103,8 +101,8 @@ void *vdr_video_init_plugin(xine_t *xine, void *data) return NULL; class->open_plugin = vdr_video_open_plugin; - class->get_identifier = vdr_video_get_identifier; - class->get_description = vdr_video_get_description; + class->identifier = "vdr"; + class->description = _("modifies every video frame as requested by VDR"); class->dispose = vdr_video_class_dispose; return class; @@ -146,16 +144,6 @@ static post_plugin_t *vdr_video_open_plugin(post_class_t *class_gen, int inputs, return &this->post_plugin; } -static char *vdr_video_get_identifier(post_class_t *class_gen) -{ - return "vdr"; -} - -static char *vdr_video_get_description(post_class_t *class_gen) -{ - return "modifies every video frame as requested by VDR"; -} - static void vdr_video_class_dispose(post_class_t *class_gen) { free(class_gen); |
