summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2007-08-15 14:36:15 +0000
committerLennart Poettering <lennart@poettering.net>2007-08-15 14:36:15 +0000
commit5fc130d41d11e53799f7724474dee9532b1e4649 (patch)
tree76206d052661dfbabd848f8cef08a0d9841fc319 /src
parent52157cb3b6f88a7bd2e28df216ad550954cec1f1 (diff)
strip whitspaces from song titles
git-svn-id: file:///home/lennart/svn/public/gst-pulse/trunk@60 bb39ca4e-bce3-0310-b5d4-eea78a553289
Diffstat (limited to 'src')
-rw-r--r--src/pulsesink.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pulsesink.c b/src/pulsesink.c
index 1d8e432..cc4e788 100644
--- a/src/pulsesink.c
+++ b/src/pulsesink.c
@@ -593,13 +593,13 @@ static gboolean gst_pulsesink_event(GstBaseSink *sink, GstEvent *event) {
gst_tag_list_get_string(l, GST_TAG_DESCRIPTION, &description);
if (title && artist)
- t = buf = g_strdup_printf("'%s' by '%s'", title, artist);
+ t = buf = g_strdup_printf("'%s' by '%s'", g_strstrip(title), g_strstrip(artist));
else if (title)
- t = title;
+ t = g_strstrip(title);
else if (description)
- t = description;
+ t = g_strstrip(description);
else if (location)
- t = location;
+ t = g_strstrip(location);
if (t)
gst_pulsesink_change_title(pulsesink, t);