From 5fc130d41d11e53799f7724474dee9532b1e4649 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 15 Aug 2007 14:36:15 +0000 Subject: strip whitspaces from song titles git-svn-id: file:///home/lennart/svn/public/gst-pulse/trunk@60 bb39ca4e-bce3-0310-b5d4-eea78a553289 --- src/pulsesink.c | 8 ++++---- 1 file 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); -- cgit