diff options
author | Benjamin Otte <otte@gnome.org> | 2004-07-19 21:44:49 +0000 |
---|---|---|
committer | Benjamin Otte <otte@gnome.org> | 2004-07-19 21:44:49 +0000 |
commit | 7b10ba45bd1a00c9b5b095a36569220085b3fb89 (patch) | |
tree | dbc74a3d5df6c0fcb0ad56dd2a114daae973abdf /ext | |
parent | 28c16727411c6856b6faca7e944b678cbbceacca (diff) | |
download | gst-plugins-bad-7b10ba45bd1a00c9b5b095a36569220085b3fb89.tar.gz gst-plugins-bad-7b10ba45bd1a00c9b5b095a36569220085b3fb89.tar.bz2 gst-plugins-bad-7b10ba45bd1a00c9b5b095a36569220085b3fb89.zip |
ext/ladspa/gstladspa.c: make sure longname, description and author are valid UTF-8
Original commit message from CVS:
* ext/ladspa/gstladspa.c: (gst_ladspa_base_init):
make sure longname, description and author are valid UTF-8
Diffstat (limited to 'ext')
-rw-r--r-- | ext/ladspa/gstladspa.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/ladspa/gstladspa.c b/ext/ladspa/gstladspa.c index 191a7d9f..0f1982f8 100644 --- a/ext/ladspa/gstladspa.c +++ b/ext/ladspa/gstladspa.c @@ -119,9 +119,13 @@ gst_ladspa_base_init (GstLADSPAClass * klass) /* construct the element details struct */ details = g_new0 (GstElementDetails, 1); - details->longname = g_strdup (desc->Name); + details->longname = g_locale_to_utf8 (desc->Name, -1, NULL, NULL, NULL); + if (!details->longname) + details->longname = g_strdup ("no description available"); details->description = details->longname; - details->author = g_strdup (desc->Maker); + details->author = g_locale_to_utf8 (desc->Maker, -1, NULL, NULL, NULL); + if (!details->author) + details->author = g_strdup ("no author available"); if ((klass->numsinkpads > 0) && (klass->numsrcpads > 0)) details->klass = "Filter/Effect/Audio/LADSPA"; else if ((klass->numsinkpads == 0) && (klass->numsrcpads > 0)) |