summaryrefslogtreecommitdiff
path: root/src/post/audio/stretch.c
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-12 15:13:31 +0100
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-12 15:13:31 +0100
commit552c28241aa1e6820857f5bf8bd8bbb9ee99dd99 (patch)
tree2b611c01a7fbb1cde54a58236557c61fd9b2248e /src/post/audio/stretch.c
parentb39d5d3f3e65ef7b741dc4d675dc4d91d250c25b (diff)
parenta151844ec16b67d6f844c176a611d5907e15ed5c (diff)
downloadxine-lib-552c28241aa1e6820857f5bf8bd8bbb9ee99dd99.tar.gz
xine-lib-552c28241aa1e6820857f5bf8bd8bbb9ee99dd99.tar.bz2
Merge with 1.2-plugins-changes.
Diffstat (limited to 'src/post/audio/stretch.c')
-rw-r--r--src/post/audio/stretch.c21
1 files changed, 3 insertions, 18 deletions
diff --git a/src/post/audio/stretch.c b/src/post/audio/stretch.c
index 5aa7a0617..f02b1b899 100644
--- a/src/post/audio/stretch.c
+++ b/src/post/audio/stretch.c
@@ -659,21 +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);
-}
-
/* plugin class initialization function */
void *stretch_init_plugin(xine_t *xine, void *data)
{
@@ -683,9 +668,9 @@ 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.dispose = stretch_class_dispose;
+ class->post_class.identifier = "stretch";
+ class->post_class.description = N_("Time stretch by a given factor, optionally preserving pitch");
+ class->post_class.dispose = default_post_class_dispose;
class->xine = xine;