mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
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.
This commit is contained in:
parent
f12aed235d
commit
1fd9e983f3
1 changed files with 4 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue