From b3419984efb0af7b31c9faebb779ee412e3d02f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Tue, 11 Dec 2007 13:44:10 +0100 Subject: Update all post plugins to the new identifier/description interface. Add _() where missing, for i18n. --- src/post/audio/stretch.c | 14 ++------------ src/post/audio/upmix.c | 14 ++------------ src/post/audio/upmix_mono.c | 14 ++------------ src/post/audio/volnorm.c | 14 ++------------ src/post/deinterlace/xine_plugin.c | 16 ++-------------- src/post/goom/xine_goom.c | 16 ++-------------- src/post/mosaico/mosaico.c | 16 ++-------------- src/post/mosaico/switch.c | 16 ++-------------- src/post/planar/boxblur.c | 16 ++-------------- src/post/planar/denoise3d.c | 16 ++-------------- src/post/planar/eq.c | 16 ++-------------- src/post/planar/eq2.c | 16 ++-------------- src/post/planar/expand.c | 16 ++-------------- src/post/planar/fill.c | 16 ++-------------- src/post/planar/invert.c | 16 ++-------------- src/post/planar/noise.c | 16 ++-------------- src/post/planar/pp.c | 16 ++-------------- src/post/planar/unsharp.c | 16 ++-------------- src/post/visualizations/fftgraph.c | 14 ++------------ src/post/visualizations/fftscope.c | 14 ++------------ src/post/visualizations/fooviz.c | 14 ++------------ src/post/visualizations/oscope.c | 14 ++------------ 22 files changed, 44 insertions(+), 292 deletions(-) (limited to 'src/post') diff --git a/src/post/audio/stretch.c b/src/post/audio/stretch.c index 5aa7a0617..455001deb 100644 --- a/src/post/audio/stretch.c +++ b/src/post/audio/stretch.c @@ -659,16 +659,6 @@ static post_plugin_t *stretch_open_plugin(post_class_t *class_gen, int inputs, return &this->post; } -static char *stretch_get_identifier(post_class_t *class_gen) -{ - return "stretch"; -} - -static char *stretch_get_description(post_class_t *class_gen) -{ - return "Time stretch by a given factor, optionally preserving pitch"; -} - static void stretch_class_dispose(post_class_t *class_gen) { free(class_gen); @@ -683,8 +673,8 @@ void *stretch_init_plugin(xine_t *xine, void *data) return NULL; class->post_class.open_plugin = stretch_open_plugin; - class->post_class.get_identifier = stretch_get_identifier; - class->post_class.get_description = stretch_get_description; + class->post_class.identifier = "stretch"; + class->post_class.description = _("Time stretch by a given factor, optionally preserving pitch"); class->post_class.dispose = stretch_class_dispose; class->xine = xine; diff --git a/src/post/audio/upmix.c b/src/post/audio/upmix.c index e1b2afbe3..e2c9f84a3 100644 --- a/src/post/audio/upmix.c +++ b/src/post/audio/upmix.c @@ -414,16 +414,6 @@ static post_plugin_t *upmix_open_plugin(post_class_t *class_gen, int inputs, return &this->post; } -static char *upmix_get_identifier(post_class_t *class_gen) -{ - return "upmix"; -} - -static char *upmix_get_description(post_class_t *class_gen) -{ - return "upmix"; -} - static void upmix_class_dispose(post_class_t *class_gen) { free(class_gen); @@ -438,8 +428,8 @@ void *upmix_init_plugin(xine_t *xine, void *data) return NULL; class->post_class.open_plugin = upmix_open_plugin; - class->post_class.get_identifier = upmix_get_identifier; - class->post_class.get_description = upmix_get_description; + class->post_class.identifier = "upmix"; + class->post_class.description = _("upmix"); class->post_class.dispose = upmix_class_dispose; class->xine = xine; diff --git a/src/post/audio/upmix_mono.c b/src/post/audio/upmix_mono.c index 195831123..dad9e5274 100644 --- a/src/post/audio/upmix_mono.c +++ b/src/post/audio/upmix_mono.c @@ -329,16 +329,6 @@ static post_plugin_t *upmix_mono_open_plugin(post_class_t *class_gen, int inputs return &this->post; } -static char *upmix_mono_get_identifier(post_class_t *class_gen) -{ - return "upmix_mono"; -} - -static char *upmix_mono_get_description(post_class_t *class_gen) -{ - return "converts Mono into Stereo"; -} - static void upmix_mono_class_dispose(post_class_t *class_gen) { free(class_gen); @@ -353,8 +343,8 @@ void *upmix_mono_init_plugin(xine_t *xine, void *data) return NULL; class->post_class.open_plugin = upmix_mono_open_plugin; - class->post_class.get_identifier = upmix_mono_get_identifier; - class->post_class.get_description = upmix_mono_get_description; + class->post_class.identifier = "upmix_mono"; + class->post_class.description = _("converts Mono into Stereo"); class->post_class.dispose = upmix_mono_class_dispose; class->xine = xine; diff --git a/src/post/audio/volnorm.c b/src/post/audio/volnorm.c index 783c1e26d..47cd400be 100644 --- a/src/post/audio/volnorm.c +++ b/src/post/audio/volnorm.c @@ -447,16 +447,6 @@ static post_plugin_t *volnorm_open_plugin(post_class_t *class_gen, int inputs, return &this->post; } -static char *volnorm_get_identifier(post_class_t *class_gen) -{ - return "volnorm"; -} - -static char *volnorm_get_description(post_class_t *class_gen) -{ - return "Normalize volume"; -} - static void volnorm_class_dispose(post_class_t *class_gen) { free(class_gen); @@ -471,8 +461,8 @@ void *volnorm_init_plugin(xine_t *xine, void *data) return NULL; class->post_class.open_plugin = volnorm_open_plugin; - class->post_class.get_identifier = volnorm_get_identifier; - class->post_class.get_description = volnorm_get_description; + class->post_class.identifier = "volnorm"; + class->post_class.description = _("Normalize volume"); class->post_class.dispose = volnorm_class_dispose; class->xine = xine; diff --git a/src/post/deinterlace/xine_plugin.c b/src/post/deinterlace/xine_plugin.c index 99bd597f6..cbe024d19 100644 --- a/src/post/deinterlace/xine_plugin.c +++ b/src/post/deinterlace/xine_plugin.c @@ -268,8 +268,6 @@ static xine_post_api_t post_api = { static post_plugin_t *deinterlace_open_plugin(post_class_t *class_gen, int inputs, xine_audio_port_t **audio_target, xine_video_port_t **video_target); -static char *deinterlace_get_identifier(post_class_t *class_gen); -static char *deinterlace_get_description(post_class_t *class_gen); static void deinterlace_class_dispose(post_class_t *class_gen); /* plugin instance functions */ @@ -299,8 +297,8 @@ static void *deinterlace_init_plugin(xine_t *xine, void *data) return NULL; class->class.open_plugin = deinterlace_open_plugin; - class->class.get_identifier = deinterlace_get_identifier; - class->class.get_description = deinterlace_get_description; + class->class.identifier = "tvtime"; + class->class.description = _("advanced deinterlacer plugin with pulldown detection"); class->class.dispose = deinterlace_class_dispose; @@ -412,16 +410,6 @@ static post_plugin_t *deinterlace_open_plugin(post_class_t *class_gen, int input return &this->post; } -static char *deinterlace_get_identifier(post_class_t *class_gen) -{ - return "tvtime"; -} - -static char *deinterlace_get_description(post_class_t *class_gen) -{ - return "advanced deinterlacer plugin with pulldown detection"; -} - static void deinterlace_class_dispose(post_class_t *class_gen) { xine_buffer_free(help_string); diff --git a/src/post/goom/xine_goom.c b/src/post/goom/xine_goom.c index 351c997ba..4371785f5 100644 --- a/src/post/goom/xine_goom.c +++ b/src/post/goom/xine_goom.c @@ -125,8 +125,6 @@ const plugin_info_t xine_plugin_info[] EXPORTED = { static post_plugin_t *goom_open_plugin(post_class_t *class_gen, int inputs, xine_audio_port_t **audio_target, xine_video_port_t **video_target); -static char *goom_get_identifier(post_class_t *class_gen); -static char *goom_get_description(post_class_t *class_gen); static void goom_class_dispose(post_class_t *class_gen); /* plugin instance functions */ @@ -194,8 +192,8 @@ static void *goom_init_plugin(xine_t *xine, void *data) return NULL; this->class.open_plugin = goom_open_plugin; - this->class.get_identifier = goom_get_identifier; - this->class.get_description = goom_get_description; + this->class.identifier = "goom"; + this->class.description = _("What a GOOM"); this->class.dispose = goom_class_dispose; this->ip = NULL; this->xine = xine; @@ -307,16 +305,6 @@ static post_plugin_t *goom_open_plugin(post_class_t *class_gen, int inputs, return &this->post; } -static char *goom_get_identifier(post_class_t *class_gen) -{ - return "goom"; -} - -static char *goom_get_description(post_class_t *class_gen) -{ - return "What a GOOM"; -} - static void goom_class_dispose(post_class_t *class_gen) { post_class_goom_t *this = (post_class_goom_t*) class_gen; diff --git a/src/post/mosaico/mosaico.c b/src/post/mosaico/mosaico.c index 05c1f5f19..af84dca8f 100644 --- a/src/post/mosaico/mosaico.c +++ b/src/post/mosaico/mosaico.c @@ -96,8 +96,6 @@ struct post_mosaico_s { static post_plugin_t *mosaico_open_plugin(post_class_t *class_gen, int inputs, xine_audio_port_t **audio_target, xine_video_port_t **video_target); -static char *mosaico_get_identifier(post_class_t *class_gen); -static char *mosaico_get_description(post_class_t *class_gen); static void mosaico_class_dispose(post_class_t *class_gen); /* plugin instance functions */ @@ -128,8 +126,8 @@ static void *mosaico_init_plugin(xine_t *xine, void *data) return NULL; this->class.open_plugin = mosaico_open_plugin; - this->class.get_identifier = mosaico_get_identifier; - this->class.get_description = mosaico_get_description; + this->class.identifier = "mosaico"; + this->class.description = _("Mosaico is a picture in picture (pip) post plugin"); this->class.dispose = mosaico_class_dispose; this->xine = xine; @@ -202,16 +200,6 @@ static post_plugin_t *mosaico_open_plugin(post_class_t *class_gen, int inputs, return &this->post; } -static char *mosaico_get_identifier(post_class_t *class_gen) -{ - return "mosaico"; -} - -static char *mosaico_get_description(post_class_t *class_gen) -{ - return "Mosaico is a picture in picture (pip) post plugin"; -} - static void mosaico_class_dispose(post_class_t *class_gen) { free(class_gen); diff --git a/src/post/mosaico/switch.c b/src/post/mosaico/switch.c index 8fec5ee77..3561226b1 100644 --- a/src/post/mosaico/switch.c +++ b/src/post/mosaico/switch.c @@ -82,8 +82,6 @@ struct post_switch_s { static post_plugin_t *switch_open_plugin(post_class_t *class_gen, int inputs, xine_audio_port_t **audio_target, xine_video_port_t **video_target); -static char *switch_get_identifier(post_class_t *class_gen); -static char *switch_get_description(post_class_t *class_gen); static void switch_class_dispose(post_class_t *class_gen); /* plugin instance functions */ @@ -107,8 +105,8 @@ static void *switch_init_plugin(xine_t *xine, void *data) return NULL; this->class.open_plugin = switch_open_plugin; - this->class.get_identifier = switch_get_identifier; - this->class.get_description = switch_get_description; + this->class.identifier = "switch"; + this->class.description = _("Switch is a post plugin able to switch at any time between different streams"); this->class.dispose = switch_class_dispose; this->xine = xine; @@ -168,16 +166,6 @@ static post_plugin_t *switch_open_plugin(post_class_t *class_gen, int inputs, return &this->post; } -static char *switch_get_identifier(post_class_t *class_gen) -{ - return "switch"; -} - -static char *switch_get_description(post_class_t *class_gen) -{ - return "Switch is a post plugin able to switch at any time between different streams"; -} - static void switch_class_dispose(post_class_t *class_gen) { free(class_gen); diff --git a/src/post/planar/boxblur.c b/src/post/planar/boxblur.c index b7a6f524f..dd22bef44 100644 --- a/src/post/planar/boxblur.c +++ b/src/post/planar/boxblur.c @@ -120,8 +120,6 @@ static xine_post_api_t post_api = { static post_plugin_t *boxblur_open_plugin(post_class_t *class_gen, int inputs, xine_audio_port_t **audio_target, xine_video_port_t **video_target); -static char *boxblur_get_identifier(post_class_t *class_gen); -static char *boxblur_get_description(post_class_t *class_gen); static void boxblur_class_dispose(post_class_t *class_gen); /* plugin instance functions */ @@ -142,8 +140,8 @@ void *boxblur_init_plugin(xine_t *xine, void *data) return NULL; class->open_plugin = boxblur_open_plugin; - class->get_identifier = boxblur_get_identifier; - class->get_description = boxblur_get_description; + class->identifier = "boxblur"; + class->description = _("box blur filter from mplayer"); class->dispose = boxblur_class_dispose; return class; @@ -194,16 +192,6 @@ static post_plugin_t *boxblur_open_plugin(post_class_t *class_gen, int inputs, return &this->post; } -static char *boxblur_get_identifier(post_class_t *class_gen) -{ - return "boxblur"; -} - -static char *boxblur_get_description(post_class_t *class_gen) -{ - return "box blur filter from mplayer"; -} - static void boxblur_class_dispose(post_class_t *class_gen) { free(class_gen); diff --git a/src/post/planar/denoise3d.c b/src/post/planar/denoise3d.c index fb3c1102b..5bac53e52 100644 --- a/src/post/planar/denoise3d.c +++ b/src/post/planar/denoise3d.c @@ -157,8 +157,6 @@ static xine_post_api_t post_api = { static post_plugin_t *denoise3d_open_plugin(post_class_t *class_gen, int inputs, xine_audio_port_t **audio_target, xine_video_port_t **video_target); -static char *denoise3d_get_identifier(post_class_t *class_gen); -static char *denoise3d_get_description(post_class_t *class_gen); static void denoise3d_class_dispose(post_class_t *class_gen); /* plugin instance functions */ @@ -182,8 +180,8 @@ void *denoise3d_init_plugin(xine_t *xine, void *data) return NULL; class->open_plugin = denoise3d_open_plugin; - class->get_identifier = denoise3d_get_identifier; - class->get_description = denoise3d_get_description; + class->identifier = "denoise3d"; + class->description = _("3D Denoiser (variable lowpass filter)"); class->dispose = denoise3d_class_dispose; return class; @@ -237,16 +235,6 @@ static post_plugin_t *denoise3d_open_plugin(post_class_t *class_gen, int inputs, return &this->post; } -static char *denoise3d_get_identifier(post_class_t *class_gen) -{ - return "denoise3d"; -} - -static char *denoise3d_get_description(post_class_t *class_gen) -{ - return "3D Denoiser (variable lowpass filter)"; -} - static void denoise3d_class_dispose(post_class_t *class_gen) { free(class_gen); diff --git a/src/post/planar/eq.c b/src/post/planar/eq.c index b2cf6e50f..bd1571603 100644 --- a/src/post/planar/eq.c +++ b/src/post/planar/eq.c @@ -208,8 +208,6 @@ static xine_post_api_t post_api = { static post_plugin_t *eq_open_plugin(post_class_t *class_gen, int inputs, xine_audio_port_t **audio_target, xine_video_port_t **video_target); -static char *eq_get_identifier(post_class_t *class_gen); -static char *eq_get_description(post_class_t *class_gen); static void eq_class_dispose(post_class_t *class_gen); /* plugin instance functions */ @@ -234,8 +232,8 @@ void *eq_init_plugin(xine_t *xine, void *data) return NULL; class->open_plugin = eq_open_plugin; - class->get_identifier = eq_get_identifier; - class->get_description = eq_get_description; + class->identifier = "eq"; + class->description = _("soft video equalizer"); class->dispose = eq_class_dispose; return class; @@ -292,16 +290,6 @@ static post_plugin_t *eq_open_plugin(post_class_t *class_gen, int inputs, return &this->post; } -static char *eq_get_identifier(post_class_t *class_gen) -{ - return "eq"; -} - -static char *eq_get_description(post_class_t *class_gen) -{ - return "soft video equalizer"; -} - static void eq_class_dispose(post_class_t *class_gen) { free(class_gen); diff --git a/src/post/planar/eq2.c b/src/post/planar/eq2.c index 6b277c347..e33f6075b 100644 --- a/src/post/planar/eq2.c +++ b/src/post/planar/eq2.c @@ -389,8 +389,6 @@ static xine_post_api_t post_api = { static post_plugin_t *eq2_open_plugin(post_class_t *class_gen, int inputs, xine_audio_port_t **audio_target, xine_video_port_t **video_target); -static char *eq2_get_identifier(post_class_t *class_gen); -static char *eq2_get_description(post_class_t *class_gen); static void eq2_class_dispose(post_class_t *class_gen); /* plugin instance functions */ @@ -415,8 +413,8 @@ void *eq2_init_plugin(xine_t *xine, void *data) return NULL; class->open_plugin = eq2_open_plugin; - class->get_identifier = eq2_get_identifier; - class->get_description = eq2_get_description; + class->identifier = "eq2"; + class->description = _("Software video equalizer"); class->dispose = eq2_class_dispose; return class; @@ -489,16 +487,6 @@ static post_plugin_t *eq2_open_plugin(post_class_t *class_gen, int inputs, return &this->post; } -static char *eq2_get_identifier(post_class_t *class_gen) -{ - return "eq2"; -} - -static char *eq2_get_description(post_class_t *class_gen) -{ - return "Software video equalizer"; -} - static void eq2_class_dispose(post_class_t *class_gen) { free(class_gen); diff --git a/src/post/planar/expand.c b/src/post/planar/expand.c index 67d449153..d654190f5 100644 --- a/src/post/planar/expand.c +++ b/src/post/planar/expand.c @@ -100,8 +100,6 @@ typedef struct post_expand_s { static post_plugin_t *expand_open_plugin(post_class_t *class_gen, int inputs, xine_audio_port_t **audio_target, xine_video_port_t **video_target); -static char *expand_get_identifier(post_class_t *class_gen); -static char *expand_get_description(post_class_t *class_gen); static void expand_class_dispose(post_class_t *class_gen); /* plugin instance functions */ @@ -136,8 +134,8 @@ void *expand_init_plugin(xine_t *xine, void *data) return NULL; class->open_plugin = expand_open_plugin; - class->get_identifier = expand_get_identifier; - class->get_description = expand_get_description; + class->identifier = "expand"; + class->description = _("add black borders to top and bottom of video to expand it to 4:3 aspect ratio"); class->dispose = expand_class_dispose; return class; @@ -191,16 +189,6 @@ static post_plugin_t *expand_open_plugin(post_class_t *class_gen, int inputs, return &this->post; } -static char *expand_get_identifier(post_class_t *class_gen) -{ - return "expand"; -} - -static char *expand_get_description(post_class_t *class_gen) -{ - return "add black borders to top and bottom of video to expand it to 4:3 aspect ratio"; -} - static void expand_class_dispose(post_class_t *class_gen) { free(class_gen); diff --git a/src/post/planar/fill.c b/src/post/planar/fill.c index 32a9d5dfb..3406a57b1 100644 --- a/src/post/planar/fill.c +++ b/src/post/planar/fill.c @@ -32,8 +32,6 @@ void *fill_init_plugin(xine_t *xine, void *); static post_plugin_t *fill_open_plugin(post_class_t *class_gen, int inputs, xine_audio_port_t **audio_target, xine_video_port_t **video_target); -static char *fill_get_identifier(post_class_t *class_gen); -static char *fill_get_description(post_class_t *class_gen); static void fill_class_dispose(post_class_t *class_gen); /* plugin instance functions */ @@ -54,8 +52,8 @@ void *fill_init_plugin(xine_t *xine, void *data) return NULL; class->open_plugin = fill_open_plugin; - class->get_identifier = fill_get_identifier; - class->get_description = fill_get_description; + class->identifier = "fill"; + class->description = _("crops left and right of video to fill 4:3 aspect ratio"); class->dispose = fill_class_dispose; return class; @@ -92,16 +90,6 @@ static post_plugin_t *fill_open_plugin(post_class_t *class_gen, int inputs, return this; } -static char *fill_get_identifier(post_class_t *class_gen) -{ - return "fill"; -} - -static char *fill_get_description(post_class_t *class_gen) -{ - return "crops left and right of video to fill 4:3 aspect ratio"; -} - static void fill_class_dispose(post_class_t *class_gen) { free(class_gen); diff --git a/src/post/planar/invert.c b/src/post/planar/invert.c index 1aa5c2a2e..d8a83ee28 100644 --- a/src/post/planar/invert.c +++ b/src/post/planar/invert.c @@ -33,8 +33,6 @@ void *invert_init_plugin(xine_t *xine, void *); static post_plugin_t *invert_open_plugin(post_class_t *class_gen, int inputs, xine_audio_port_t **audio_target, xine_video_port_t **video_target); -static char *invert_get_identifier(post_class_t *class_gen); -static char *invert_get_description(post_class_t *class_gen); static void invert_class_dispose(post_class_t *class_gen); /* plugin instance functions */ @@ -55,8 +53,8 @@ void *invert_init_plugin(xine_t *xine, void *data) return NULL; class->open_plugin = invert_open_plugin; - class->get_identifier = invert_get_identifier; - class->get_description = invert_get_description; + class->identifier = "invert"; + class->description = _("inverts the colours of every video frame"); class->dispose = invert_class_dispose; return class; @@ -91,16 +89,6 @@ static post_plugin_t *invert_open_plugin(post_class_t *class_gen, int inputs, return this; } -static char *invert_get_identifier(post_class_t *class_gen) -{ - return "invert"; -} - -static char *invert_get_description(post_class_t *class_gen) -{ - return "inverts the colours of every video frame"; -} - static void invert_class_dispose(post_class_t *class_gen) { free(class_gen); diff --git a/src/post/planar/noise.c b/src/post/planar/noise.c index 8c04f2e72..31d61c62b 100644 --- a/src/post/planar/noise.c +++ b/src/post/planar/noise.c @@ -429,8 +429,6 @@ static xine_post_api_t post_api = { static post_plugin_t *noise_open_plugin(post_class_t *class_gen, int inputs, xine_audio_port_t **audio_target, xine_video_port_t **video_target); -static char *noise_get_identifier(post_class_t *class_gen); -static char *noise_get_description(post_class_t *class_gen); static void noise_class_dispose(post_class_t *class_gen); /* plugin instance functions */ @@ -451,8 +449,8 @@ void *noise_init_plugin(xine_t *xine, void *data) return NULL; class->open_plugin = noise_open_plugin; - class->get_identifier = noise_get_identifier; - class->get_description = noise_get_description; + class->identifier = "noise"; + class->description = _("Adds noise"); class->dispose = noise_class_dispose; #ifdef ARCH_X86 @@ -515,16 +513,6 @@ static post_plugin_t *noise_open_plugin(post_class_t *class_gen, int inputs, return &this->post; } -static char *noise_get_identifier(post_class_t *class_gen) -{ - return "noise"; -} - -static char *noise_get_description(post_class_t *class_gen) -{ - return "Adds noise"; -} - static void noise_class_dispose(post_class_t *class_gen) { free(class_gen); diff --git a/src/post/planar/pp.c b/src/post/planar/pp.c index e13119311..dead0e543 100644 --- a/src/post/planar/pp.c +++ b/src/post/planar/pp.c @@ -135,8 +135,6 @@ static xine_post_api_t post_api = { static post_plugin_t *pp_open_plugin(post_class_t *class_gen, int inputs, xine_audio_port_t **audio_target, xine_video_port_t **video_target); -static char *pp_get_identifier(post_class_t *class_gen); -static char *pp_get_description(post_class_t *class_gen); static void pp_class_dispose(post_class_t *class_gen); /* plugin instance functions */ @@ -157,8 +155,8 @@ void *pp_init_plugin(xine_t *xine, void *data) return NULL; class->open_plugin = pp_open_plugin; - class->get_identifier = pp_get_identifier; - class->get_description = pp_get_description; + class->identifier = "pp"; + class->description = _("plugin for ffmpeg libpostprocess"); class->dispose = pp_class_dispose; return class; @@ -221,16 +219,6 @@ static post_plugin_t *pp_open_plugin(post_class_t *class_gen, int inputs, return &this->post; } -static char *pp_get_identifier(post_class_t *class_gen) -{ - return "pp"; -} - -static char *pp_get_description(post_class_t *class_gen) -{ - return "plugin for ffmpeg libpostprocess"; -} - static void pp_class_dispose(post_class_t *class_gen) { free(class_gen); diff --git a/src/post/planar/unsharp.c b/src/post/planar/unsharp.c index b9b791a8e..ffce45a91 100644 --- a/src/post/planar/unsharp.c +++ b/src/post/planar/unsharp.c @@ -253,8 +253,6 @@ static xine_post_api_t post_api = { static post_plugin_t *unsharp_open_plugin(post_class_t *class_gen, int inputs, xine_audio_port_t **audio_target, xine_video_port_t **video_target); -static char *unsharp_get_identifier(post_class_t *class_gen); -static char *unsharp_get_description(post_class_t *class_gen); static void unsharp_class_dispose(post_class_t *class_gen); /* plugin instance functions */ @@ -275,8 +273,8 @@ void *unsharp_init_plugin(xine_t *xine, void *data) return NULL; class->open_plugin = unsharp_open_plugin; - class->get_identifier = unsharp_get_identifier; - class->get_description = unsharp_get_description; + class->identifier = "unsharp"; + class->description = _("unsharp mask & gaussian blur"); class->dispose = unsharp_class_dispose; return class; @@ -332,16 +330,6 @@ static post_plugin_t *unsharp_open_plugin(post_class_t *class_gen, int inputs, return &this->post; } -static char *unsharp_get_identifier(post_class_t *class_gen) -{ - return "unsharp"; -} - -static char *unsharp_get_description(post_class_t *class_gen) -{ - return "unsharp mask & gaussian blur"; -} - static void unsharp_class_dispose(post_class_t *class_gen) { free(class_gen); diff --git a/src/post/visualizations/fftgraph.c b/src/post/visualizations/fftgraph.c index 5068bd37a..1194c956f 100644 --- a/src/post/visualizations/fftgraph.c +++ b/src/post/visualizations/fftgraph.c @@ -452,16 +452,6 @@ static post_plugin_t *fftgraph_open_plugin(post_class_t *class_gen, int inputs, return &this->post; } -static char *fftgraph_get_identifier(post_class_t *class_gen) -{ - return "fftgraph"; -} - -static char *fftgraph_get_description(post_class_t *class_gen) -{ - return "fftgraph Visualization Post Plugin"; -} - static void fftgraph_class_dispose(post_class_t *class_gen) { free(class_gen); @@ -476,8 +466,8 @@ void *fftgraph_init_plugin(xine_t *xine, void *data) return NULL; class->post_class.open_plugin = fftgraph_open_plugin; - class->post_class.get_identifier = fftgraph_get_identifier; - class->post_class.get_description = fftgraph_get_description; + class->post_class.identifier = "fftgraph"; + class->post_class.description = _("fftgraph Visualization Post Plugin"); class->post_class.dispose = fftgraph_class_dispose; class->xine = xine; diff --git a/src/post/visualizations/fftscope.c b/src/post/visualizations/fftscope.c index ba34437f5..6f152f15c 100644 --- a/src/post/visualizations/fftscope.c +++ b/src/post/visualizations/fftscope.c @@ -473,16 +473,6 @@ static post_plugin_t *fftscope_open_plugin(post_class_t *class_gen, int inputs, return &this->post; } -static char *fftscope_get_identifier(post_class_t *class_gen) -{ - return "FFT Scope"; -} - -static char *fftscope_get_description(post_class_t *class_gen) -{ - return "FFT Scope"; -} - static void fftscope_class_dispose(post_class_t *class_gen) { free(class_gen); @@ -497,8 +487,8 @@ void *fftscope_init_plugin(xine_t *xine, void *data) return NULL; class->post_class.open_plugin = fftscope_open_plugin; - class->post_class.get_identifier = fftscope_get_identifier; - class->post_class.get_description = fftscope_get_description; + class->post_class.identifier = "FFT Scope"; + class->post_class.description = _("FFT Scope"); class->post_class.dispose = fftscope_class_dispose; class->xine = xine; diff --git a/src/post/visualizations/fooviz.c b/src/post/visualizations/fooviz.c index 21854afc6..6b0a583be 100644 --- a/src/post/visualizations/fooviz.c +++ b/src/post/visualizations/fooviz.c @@ -284,16 +284,6 @@ static post_plugin_t *fooviz_open_plugin(post_class_t *class_gen, int inputs, return &this->post; } -static char *fooviz_get_identifier(post_class_t *class_gen) -{ - return "fooviz"; -} - -static char *fooviz_get_description(post_class_t *class_gen) -{ - return "fooviz"; -} - static void fooviz_class_dispose(post_class_t *class_gen) { free(class_gen); @@ -308,8 +298,8 @@ static void *fooviz_init_plugin(xine_t *xine, void *data) return NULL; class->post_class.open_plugin = fooviz_open_plugin; - class->post_class.get_identifier = fooviz_get_identifier; - class->post_class.get_description = fooviz_get_description; + class->post_class.identifier = "fooviz"; + class->post_class.description = _("fooviz"); class->post_class.dispose = fooviz_class_dispose; class->xine = xine; diff --git a/src/post/visualizations/oscope.c b/src/post/visualizations/oscope.c index a435604d4..5c91472fa 100644 --- a/src/post/visualizations/oscope.c +++ b/src/post/visualizations/oscope.c @@ -355,16 +355,6 @@ static post_plugin_t *oscope_open_plugin(post_class_t *class_gen, int inputs, return &this->post; } -static char *oscope_get_identifier(post_class_t *class_gen) -{ - return "Oscilloscope"; -} - -static char *oscope_get_description(post_class_t *class_gen) -{ - return "Oscilloscope"; -} - static void oscope_class_dispose(post_class_t *class_gen) { free(class_gen); @@ -379,8 +369,8 @@ void *oscope_init_plugin(xine_t *xine, void *data) return NULL; class->post_class.open_plugin = oscope_open_plugin; - class->post_class.get_identifier = oscope_get_identifier; - class->post_class.get_description = oscope_get_description; + class->post_class.identifier = "Oscilloscope"; + class->post_class.description = _("Oscilloscope"); class->post_class.dispose = oscope_class_dispose; class->xine = xine; -- cgit v1.2.3 From e2a10c5fdaed1f45040fb3d737ab79f0e5d774d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Tue, 11 Dec 2007 14:12:35 +0100 Subject: Use N_() rather than _(), passing the string just once to gettext(). This way the gettext code for description does not need to be repeated by every plugin. --- src/post/audio/stretch.c | 2 +- src/post/audio/upmix.c | 2 +- src/post/audio/upmix_mono.c | 2 +- src/post/audio/volnorm.c | 2 +- src/post/deinterlace/xine_plugin.c | 2 +- src/post/goom/xine_goom.c | 2 +- src/post/mosaico/mosaico.c | 2 +- src/post/mosaico/switch.c | 2 +- src/post/planar/boxblur.c | 2 +- src/post/planar/denoise3d.c | 2 +- src/post/planar/eq.c | 2 +- src/post/planar/eq2.c | 2 +- src/post/planar/expand.c | 2 +- src/post/planar/fill.c | 2 +- src/post/planar/invert.c | 2 +- src/post/planar/noise.c | 2 +- src/post/planar/pp.c | 2 +- src/post/planar/unsharp.c | 2 +- src/post/visualizations/fftgraph.c | 2 +- src/post/visualizations/fftscope.c | 2 +- src/post/visualizations/fooviz.c | 2 +- src/post/visualizations/oscope.c | 2 +- 22 files changed, 22 insertions(+), 22 deletions(-) (limited to 'src/post') diff --git a/src/post/audio/stretch.c b/src/post/audio/stretch.c index 455001deb..688900972 100644 --- a/src/post/audio/stretch.c +++ b/src/post/audio/stretch.c @@ -674,7 +674,7 @@ void *stretch_init_plugin(xine_t *xine, void *data) class->post_class.open_plugin = stretch_open_plugin; class->post_class.identifier = "stretch"; - class->post_class.description = _("Time stretch by a given factor, optionally preserving pitch"); + class->post_class.description = N_("Time stretch by a given factor, optionally preserving pitch"); class->post_class.dispose = stretch_class_dispose; class->xine = xine; diff --git a/src/post/audio/upmix.c b/src/post/audio/upmix.c index e2c9f84a3..72f42527c 100644 --- a/src/post/audio/upmix.c +++ b/src/post/audio/upmix.c @@ -429,7 +429,7 @@ void *upmix_init_plugin(xine_t *xine, void *data) class->post_class.open_plugin = upmix_open_plugin; class->post_class.identifier = "upmix"; - class->post_class.description = _("upmix"); + class->post_class.description = N_("upmix"); class->post_class.dispose = upmix_class_dispose; class->xine = xine; diff --git a/src/post/audio/upmix_mono.c b/src/post/audio/upmix_mono.c index dad9e5274..dda518277 100644 --- a/src/post/audio/upmix_mono.c +++ b/src/post/audio/upmix_mono.c @@ -344,7 +344,7 @@ void *upmix_mono_init_plugin(xine_t *xine, void *data) class->post_class.open_plugin = upmix_mono_open_plugin; class->post_class.identifier = "upmix_mono"; - class->post_class.description = _("converts Mono into Stereo"); + class->post_class.description = N_("converts Mono into Stereo"); class->post_class.dispose = upmix_mono_class_dispose; class->xine = xine; diff --git a/src/post/audio/volnorm.c b/src/post/audio/volnorm.c index 47cd400be..b09139cd3 100644 --- a/src/post/audio/volnorm.c +++ b/src/post/audio/volnorm.c @@ -462,7 +462,7 @@ void *volnorm_init_plugin(xine_t *xine, void *data) class->post_class.open_plugin = volnorm_open_plugin; class->post_class.identifier = "volnorm"; - class->post_class.description = _("Normalize volume"); + class->post_class.description = N_("Normalize volume"); class->post_class.dispose = volnorm_class_dispose; class->xine = xine; diff --git a/src/post/deinterlace/xine_plugin.c b/src/post/deinterlace/xine_plugin.c index cbe024d19..6b6f99be6 100644 --- a/src/post/deinterlace/xine_plugin.c +++ b/src/post/deinterlace/xine_plugin.c @@ -298,7 +298,7 @@ static void *deinterlace_init_plugin(xine_t *xine, void *data) class->class.open_plugin = deinterlace_open_plugin; class->class.identifier = "tvtime"; - class->class.description = _("advanced deinterlacer plugin with pulldown detection"); + class->class.description = N_("advanced deinterlacer plugin with pulldown detection"); class->class.dispose = deinterlace_class_dispose; diff --git a/src/post/goom/xine_goom.c b/src/post/goom/xine_goom.c index 4371785f5..0b540694d 100644 --- a/src/post/goom/xine_goom.c +++ b/src/post/goom/xine_goom.c @@ -193,7 +193,7 @@ static void *goom_init_plugin(xine_t *xine, void *data) this->class.open_plugin = goom_open_plugin; this->class.identifier = "goom"; - this->class.description = _("What a GOOM"); + this->class.description = N_("What a GOOM"); this->class.dispose = goom_class_dispose; this->ip = NULL; this->xine = xine; diff --git a/src/post/mosaico/mosaico.c b/src/post/mosaico/mosaico.c index af84dca8f..ccfd641aa 100644 --- a/src/post/mosaico/mosaico.c +++ b/src/post/mosaico/mosaico.c @@ -127,7 +127,7 @@ static void *mosaico_init_plugin(xine_t *xine, void *data) this->class.open_plugin = mosaico_open_plugin; this->class.identifier = "mosaico"; - this->class.description = _("Mosaico is a picture in picture (pip) post plugin"); + this->class.description = N_("Mosaico is a picture in picture (pip) post plugin"); this->class.dispose = mosaico_class_dispose; this->xine = xine; diff --git a/src/post/mosaico/switch.c b/src/post/mosaico/switch.c index 3561226b1..19e563680 100644 --- a/src/post/mosaico/switch.c +++ b/src/post/mosaico/switch.c @@ -106,7 +106,7 @@ static void *switch_init_plugin(xine_t *xine, void *data) this->class.open_plugin = switch_open_plugin; this->class.identifier = "switch"; - this->class.description = _("Switch is a post plugin able to switch at any time between different streams"); + this->class.description = N_("Switch is a post plugin able to switch at any time between different streams"); this->class.dispose = switch_class_dispose; this->xine = xine; diff --git a/src/post/planar/boxblur.c b/src/post/planar/boxblur.c index dd22bef44..66af08e5c 100644 --- a/src/post/planar/boxblur.c +++ b/src/post/planar/boxblur.c @@ -141,7 +141,7 @@ void *boxblur_init_plugin(xine_t *xine, void *data) class->open_plugin = boxblur_open_plugin; class->identifier = "boxblur"; - class->description = _("box blur filter from mplayer"); + class->description = N_("box blur filter from mplayer"); class->dispose = boxblur_class_dispose; return class; diff --git a/src/post/planar/denoise3d.c b/src/post/planar/denoise3d.c index 5bac53e52..647ab075e 100644 --- a/src/post/planar/denoise3d.c +++ b/src/post/planar/denoise3d.c @@ -181,7 +181,7 @@ void *denoise3d_init_plugin(xine_t *xine, void *data) class->open_plugin = denoise3d_open_plugin; class->identifier = "denoise3d"; - class->description = _("3D Denoiser (variable lowpass filter)"); + class->description = N_("3D Denoiser (variable lowpass filter)"); class->dispose = denoise3d_class_dispose; return class; diff --git a/src/post/planar/eq.c b/src/post/planar/eq.c index bd1571603..cb28cafa2 100644 --- a/src/post/planar/eq.c +++ b/src/post/planar/eq.c @@ -233,7 +233,7 @@ void *eq_init_plugin(xine_t *xine, void *data) class->open_plugin = eq_open_plugin; class->identifier = "eq"; - class->description = _("soft video equalizer"); + class->description = N_("soft video equalizer"); class->dispose = eq_class_dispose; return class; diff --git a/src/post/planar/eq2.c b/src/post/planar/eq2.c index e33f6075b..277aca00e 100644 --- a/src/post/planar/eq2.c +++ b/src/post/planar/eq2.c @@ -414,7 +414,7 @@ void *eq2_init_plugin(xine_t *xine, void *data) class->open_plugin = eq2_open_plugin; class->identifier = "eq2"; - class->description = _("Software video equalizer"); + class->description = N_("Software video equalizer"); class->dispose = eq2_class_dispose; return class; diff --git a/src/post/planar/expand.c b/src/post/planar/expand.c index d654190f5..df5fa874e 100644 --- a/src/post/planar/expand.c +++ b/src/post/planar/expand.c @@ -135,7 +135,7 @@ void *expand_init_plugin(xine_t *xine, void *data) class->open_plugin = expand_open_plugin; class->identifier = "expand"; - class->description = _("add black borders to top and bottom of video to expand it to 4:3 aspect ratio"); + class->description = N_("add black borders to top and bottom of video to expand it to 4:3 aspect ratio"); class->dispose = expand_class_dispose; return class; diff --git a/src/post/planar/fill.c b/src/post/planar/fill.c index 3406a57b1..14bd55102 100644 --- a/src/post/planar/fill.c +++ b/src/post/planar/fill.c @@ -53,7 +53,7 @@ void *fill_init_plugin(xine_t *xine, void *data) class->open_plugin = fill_open_plugin; class->identifier = "fill"; - class->description = _("crops left and right of video to fill 4:3 aspect ratio"); + class->description = N_("crops left and right of video to fill 4:3 aspect ratio"); class->dispose = fill_class_dispose; return class; diff --git a/src/post/planar/invert.c b/src/post/planar/invert.c index d8a83ee28..dd1d7ac07 100644 --- a/src/post/planar/invert.c +++ b/src/post/planar/invert.c @@ -54,7 +54,7 @@ void *invert_init_plugin(xine_t *xine, void *data) class->open_plugin = invert_open_plugin; class->identifier = "invert"; - class->description = _("inverts the colours of every video frame"); + class->description = N_("inverts the colours of every video frame"); class->dispose = invert_class_dispose; return class; diff --git a/src/post/planar/noise.c b/src/post/planar/noise.c index 31d61c62b..53dc3065d 100644 --- a/src/post/planar/noise.c +++ b/src/post/planar/noise.c @@ -450,7 +450,7 @@ void *noise_init_plugin(xine_t *xine, void *data) class->open_plugin = noise_open_plugin; class->identifier = "noise"; - class->description = _("Adds noise"); + class->description = N_("Adds noise"); class->dispose = noise_class_dispose; #ifdef ARCH_X86 diff --git a/src/post/planar/pp.c b/src/post/planar/pp.c index dead0e543..22a25fc90 100644 --- a/src/post/planar/pp.c +++ b/src/post/planar/pp.c @@ -156,7 +156,7 @@ void *pp_init_plugin(xine_t *xine, void *data) class->open_plugin = pp_open_plugin; class->identifier = "pp"; - class->description = _("plugin for ffmpeg libpostprocess"); + class->description = N_("plugin for ffmpeg libpostprocess"); class->dispose = pp_class_dispose; return class; diff --git a/src/post/planar/unsharp.c b/src/post/planar/unsharp.c index ffce45a91..b850b05b7 100644 --- a/src/post/planar/unsharp.c +++ b/src/post/planar/unsharp.c @@ -274,7 +274,7 @@ void *unsharp_init_plugin(xine_t *xine, void *data) class->open_plugin = unsharp_open_plugin; class->identifier = "unsharp"; - class->description = _("unsharp mask & gaussian blur"); + class->description = N_("unsharp mask & gaussian blur"); class->dispose = unsharp_class_dispose; return class; diff --git a/src/post/visualizations/fftgraph.c b/src/post/visualizations/fftgraph.c index 1194c956f..cb6c26015 100644 --- a/src/post/visualizations/fftgraph.c +++ b/src/post/visualizations/fftgraph.c @@ -467,7 +467,7 @@ void *fftgraph_init_plugin(xine_t *xine, void *data) class->post_class.open_plugin = fftgraph_open_plugin; class->post_class.identifier = "fftgraph"; - class->post_class.description = _("fftgraph Visualization Post Plugin"); + class->post_class.description = N_("fftgraph Visualization Post Plugin"); class->post_class.dispose = fftgraph_class_dispose; class->xine = xine; diff --git a/src/post/visualizations/fftscope.c b/src/post/visualizations/fftscope.c index 6f152f15c..c2756b5f1 100644 --- a/src/post/visualizations/fftscope.c +++ b/src/post/visualizations/fftscope.c @@ -488,7 +488,7 @@ void *fftscope_init_plugin(xine_t *xine, void *data) class->post_class.open_plugin = fftscope_open_plugin; class->post_class.identifier = "FFT Scope"; - class->post_class.description = _("FFT Scope"); + class->post_class.description = N_("FFT Scope"); class->post_class.dispose = fftscope_class_dispose; class->xine = xine; diff --git a/src/post/visualizations/fooviz.c b/src/post/visualizations/fooviz.c index 6b0a583be..509e3676f 100644 --- a/src/post/visualizations/fooviz.c +++ b/src/post/visualizations/fooviz.c @@ -299,7 +299,7 @@ static void *fooviz_init_plugin(xine_t *xine, void *data) class->post_class.open_plugin = fooviz_open_plugin; class->post_class.identifier = "fooviz"; - class->post_class.description = _("fooviz"); + class->post_class.description = N_("fooviz"); class->post_class.dispose = fooviz_class_dispose; class->xine = xine; diff --git a/src/post/visualizations/oscope.c b/src/post/visualizations/oscope.c index 5c91472fa..402963331 100644 --- a/src/post/visualizations/oscope.c +++ b/src/post/visualizations/oscope.c @@ -370,7 +370,7 @@ void *oscope_init_plugin(xine_t *xine, void *data) class->post_class.open_plugin = oscope_open_plugin; class->post_class.identifier = "Oscilloscope"; - class->post_class.description = _("Oscilloscope"); + class->post_class.description = N_("Oscilloscope"); class->post_class.dispose = oscope_class_dispose; class->xine = xine; -- cgit v1.2.3 From 32a70cef7fdce1648d6850dafbe78bee04830429 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Tue, 11 Dec 2007 15:40:37 +0100 Subject: Use default_*_class_dispose macro whenever the class dispose function only called free(). --- src/post/audio/stretch.c | 7 +------ src/post/audio/upmix.c | 7 +------ src/post/audio/upmix_mono.c | 7 +------ src/post/audio/volnorm.c | 7 +------ src/post/visualizations/fftgraph.c | 7 +------ src/post/visualizations/fftscope.c | 7 +------ src/post/visualizations/fooviz.c | 7 +------ src/post/visualizations/oscope.c | 7 +------ 8 files changed, 8 insertions(+), 48 deletions(-) (limited to 'src/post') diff --git a/src/post/audio/stretch.c b/src/post/audio/stretch.c index 688900972..f02b1b899 100644 --- a/src/post/audio/stretch.c +++ b/src/post/audio/stretch.c @@ -659,11 +659,6 @@ static post_plugin_t *stretch_open_plugin(post_class_t *class_gen, int inputs, return &this->post; } -static void stretch_class_dispose(post_class_t *class_gen) -{ - free(class_gen); -} - /* plugin class initialization function */ void *stretch_init_plugin(xine_t *xine, void *data) { @@ -675,7 +670,7 @@ void *stretch_init_plugin(xine_t *xine, void *data) class->post_class.open_plugin = stretch_open_plugin; class->post_class.identifier = "stretch"; class->post_class.description = N_("Time stretch by a given factor, optionally preserving pitch"); - class->post_class.dispose = stretch_class_dispose; + class->post_class.dispose = default_post_class_dispose; class->xine = xine; diff --git a/src/post/audio/upmix.c b/src/post/audio/upmix.c index 72f42527c..4d0e2c2a2 100644 --- a/src/post/audio/upmix.c +++ b/src/post/audio/upmix.c @@ -414,11 +414,6 @@ static post_plugin_t *upmix_open_plugin(post_class_t *class_gen, int inputs, return &this->post; } -static void upmix_class_dispose(post_class_t *class_gen) -{ - free(class_gen); -} - /* plugin class initialization function */ void *upmix_init_plugin(xine_t *xine, void *data) { @@ -430,7 +425,7 @@ void *upmix_init_plugin(xine_t *xine, void *data) class->post_class.open_plugin = upmix_open_plugin; class->post_class.identifier = "upmix"; class->post_class.description = N_("upmix"); - class->post_class.dispose = upmix_class_dispose; + class->post_class.dispose = default_post_class_dispose; class->xine = xine; diff --git a/src/post/audio/upmix_mono.c b/src/post/audio/upmix_mono.c index dda518277..b28b1f3f5 100644 --- a/src/post/audio/upmix_mono.c +++ b/src/post/audio/upmix_mono.c @@ -329,11 +329,6 @@ static post_plugin_t *upmix_mono_open_plugin(post_class_t *class_gen, int inputs return &this->post; } -static void upmix_mono_class_dispose(post_class_t *class_gen) -{ - free(class_gen); -} - /* plugin class initialization function */ void *upmix_mono_init_plugin(xine_t *xine, void *data) { @@ -345,7 +340,7 @@ void *upmix_mono_init_plugin(xine_t *xine, void *data) class->post_class.open_plugin = upmix_mono_open_plugin; class->post_class.identifier = "upmix_mono"; class->post_class.description = N_("converts Mono into Stereo"); - class->post_class.dispose = upmix_mono_class_dispose; + class->post_class.dispose = default_post_class_dispose; class->xine = xine; diff --git a/src/post/audio/volnorm.c b/src/post/audio/volnorm.c index b09139cd3..7533ba94a 100644 --- a/src/post/audio/volnorm.c +++ b/src/post/audio/volnorm.c @@ -447,11 +447,6 @@ static post_plugin_t *volnorm_open_plugin(post_class_t *class_gen, int inputs, return &this->post; } -static void volnorm_class_dispose(post_class_t *class_gen) -{ - free(class_gen); -} - /* plugin class initialization function */ void *volnorm_init_plugin(xine_t *xine, void *data) { @@ -463,7 +458,7 @@ void *volnorm_init_plugin(xine_t *xine, void *data) class->post_class.open_plugin = volnorm_open_plugin; class->post_class.identifier = "volnorm"; class->post_class.description = N_("Normalize volume"); - class->post_class.dispose = volnorm_class_dispose; + class->post_class.dispose = default_post_class_dispose; class->xine = xine; diff --git a/src/post/visualizations/fftgraph.c b/src/post/visualizations/fftgraph.c index cb6c26015..7e7f52fbf 100644 --- a/src/post/visualizations/fftgraph.c +++ b/src/post/visualizations/fftgraph.c @@ -452,11 +452,6 @@ static post_plugin_t *fftgraph_open_plugin(post_class_t *class_gen, int inputs, return &this->post; } -static void fftgraph_class_dispose(post_class_t *class_gen) -{ - free(class_gen); -} - /* plugin class initialization function */ void *fftgraph_init_plugin(xine_t *xine, void *data) { @@ -468,7 +463,7 @@ void *fftgraph_init_plugin(xine_t *xine, void *data) class->post_class.open_plugin = fftgraph_open_plugin; class->post_class.identifier = "fftgraph"; class->post_class.description = N_("fftgraph Visualization Post Plugin"); - class->post_class.dispose = fftgraph_class_dispose; + class->post_class.dispose = default_post_class_dispose; class->xine = xine; diff --git a/src/post/visualizations/fftscope.c b/src/post/visualizations/fftscope.c index c2756b5f1..917af508d 100644 --- a/src/post/visualizations/fftscope.c +++ b/src/post/visualizations/fftscope.c @@ -473,11 +473,6 @@ static post_plugin_t *fftscope_open_plugin(post_class_t *class_gen, int inputs, return &this->post; } -static void fftscope_class_dispose(post_class_t *class_gen) -{ - free(class_gen); -} - /* plugin class initialization function */ void *fftscope_init_plugin(xine_t *xine, void *data) { @@ -489,7 +484,7 @@ void *fftscope_init_plugin(xine_t *xine, void *data) class->post_class.open_plugin = fftscope_open_plugin; class->post_class.identifier = "FFT Scope"; class->post_class.description = N_("FFT Scope"); - class->post_class.dispose = fftscope_class_dispose; + class->post_class.dispose = default_post_class_dispose; class->xine = xine; diff --git a/src/post/visualizations/fooviz.c b/src/post/visualizations/fooviz.c index 509e3676f..78803f8d2 100644 --- a/src/post/visualizations/fooviz.c +++ b/src/post/visualizations/fooviz.c @@ -284,11 +284,6 @@ static post_plugin_t *fooviz_open_plugin(post_class_t *class_gen, int inputs, return &this->post; } -static void fooviz_class_dispose(post_class_t *class_gen) -{ - free(class_gen); -} - /* plugin class initialization function */ static void *fooviz_init_plugin(xine_t *xine, void *data) { @@ -300,7 +295,7 @@ static void *fooviz_init_plugin(xine_t *xine, void *data) class->post_class.open_plugin = fooviz_open_plugin; class->post_class.identifier = "fooviz"; class->post_class.description = N_("fooviz"); - class->post_class.dispose = fooviz_class_dispose; + class->post_class.dispose = default_post_class_dispose; class->xine = xine; diff --git a/src/post/visualizations/oscope.c b/src/post/visualizations/oscope.c index 402963331..86b8b2750 100644 --- a/src/post/visualizations/oscope.c +++ b/src/post/visualizations/oscope.c @@ -355,11 +355,6 @@ static post_plugin_t *oscope_open_plugin(post_class_t *class_gen, int inputs, return &this->post; } -static void oscope_class_dispose(post_class_t *class_gen) -{ - free(class_gen); -} - /* plugin class initialization function */ void *oscope_init_plugin(xine_t *xine, void *data) { @@ -371,7 +366,7 @@ void *oscope_init_plugin(xine_t *xine, void *data) class->post_class.open_plugin = oscope_open_plugin; class->post_class.identifier = "Oscilloscope"; class->post_class.description = N_("Oscilloscope"); - class->post_class.dispose = oscope_class_dispose; + class->post_class.dispose = default_post_class_dispose; class->xine = xine; -- cgit v1.2.3