diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2006-08-16 15:33:12 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2006-08-16 15:33:12 +0000 |
commit | 29161cb50e76e0531af97a1b9bc615c8405c6dbd (patch) | |
tree | e9b6a09d8a40bf76d8cb7eb54a4dbcc0dc9405f9 | |
parent | 1e4efaf684282c0d4e74ec2b6db2c0913a96d7ba (diff) |
ext/ladspa/gstladspa.c: Convert ' ' into '_'. Try to keep as many characters in the padtemplate names as possible.
Original commit message from CVS:
* ext/ladspa/gstladspa.c: (gst_ladspa_base_init):
Convert ' ' into '_'. Try to keep as many characters in the padtemplate
names as possible.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ext/ladspa/gstladspa.c | 5 |
2 files changed, 10 insertions, 1 deletions
@@ -1,5 +1,11 @@ 2006-08-16 Wim Taymans <wim@fluendo.com> + * ext/ladspa/gstladspa.c: (gst_ladspa_base_init): + Convert ' ' into '_'. Try to keep as many characters in the padtemplate + names as possible. + +2006-08-16 Wim Taymans <wim@fluendo.com> + * ext/ladspa/gstsignalprocessor.c: (gst_signal_processor_flush), (gst_signal_processor_do_pushes): A push() gives away our refcount so we should not use the buffer on the diff --git a/ext/ladspa/gstladspa.c b/ext/ladspa/gstladspa.c index fc2a9343..c256105b 100644 --- a/ext/ladspa/gstladspa.c +++ b/ext/ladspa/gstladspa.c @@ -91,7 +91,10 @@ gst_ladspa_base_init (gpointer g_class) if (LADSPA_IS_PORT_AUDIO (p)) { gchar *name = g_strdup ((gchar *) desc->PortNames[j]); - g_strcanon (name, G_CSET_A_2_Z G_CSET_a_2_z G_CSET_DIGITS "-", '-'); + GST_DEBUG ("LADSPA port name: \"%s\"", name); + g_strdelimit (name, " ", '_'); + g_strcanon (name, G_CSET_A_2_Z G_CSET_a_2_z G_CSET_DIGITS "_-><=", '-'); + GST_DEBUG ("GStreamer pad name: \"%s\"", name); if (LADSPA_IS_PORT_INPUT (p)) gst_signal_processor_class_add_pad_template (gsp_class, name, |