summaryrefslogtreecommitdiffstats
path: root/ext/ladspa
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2006-08-16 15:33:12 +0000
committerWim Taymans <wim.taymans@gmail.com>2006-08-16 15:33:12 +0000
commit1fd9e983f3007bc99d855b72dc4498da2b81478b (patch)
treefc98dded846f75c8ca19cfa410c5eebaf95d3581 /ext/ladspa
parentf12aed235df8955b6e0f05c3c96b5c12b717e051 (diff)
downloadgst-plugins-bad-1fd9e983f3007bc99d855b72dc4498da2b81478b.tar.gz
gst-plugins-bad-1fd9e983f3007bc99d855b72dc4498da2b81478b.tar.bz2
gst-plugins-bad-1fd9e983f3007bc99d855b72dc4498da2b81478b.zip
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.
Diffstat (limited to 'ext/ladspa')
-rw-r--r--ext/ladspa/gstladspa.c5
1 files changed, 4 insertions, 1 deletions
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,