[Xfce4-commits] <parole:0.2.2> Make sure that we get a valid name when playing live stream.

Ali Abdallah noreply at xfce.org
Sun Jan 31 19:28:03 CET 2010


Updating branch refs/heads/0.2.2
         to 88d822a1ea271394849b81dc0311d4b5e84272c0 (commit)
       from f31dfd809eb152872e461f4c6b16e4436209ab37 (commit)

commit 88d822a1ea271394849b81dc0311d4b5e84272c0
Author: Ali Abdallah <aliov at xfce.org>
Date:   Sun Jan 31 19:22:35 2010 +0100

    Make sure that we get a valid name when playing live stream.

 src/parole-statusbar.c |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/parole-statusbar.c b/src/parole-statusbar.c
index b5b9eca..21c8dd1 100644
--- a/src/parole-statusbar.c
+++ b/src/parole-statusbar.c
@@ -165,10 +165,15 @@ static void parole_statusbar_set_text (ParoleStatusbar *bar, const ParoleStream
 	else
 	{
 	    filename = g_filename_from_uri (uri, NULL, NULL);
-	    text = g_strdup_printf ("%s '%s'", _("Live stream:"), filename);
-	    gtk_label_set_text (GTK_LABEL (bar->priv->label_text), text);
-	    g_free (filename);
+	    if ( filename )
+	    {
+		text = g_strdup_printf ("%s '%s'", _("Live stream:"), filename);
+		g_free (filename);
+	    }
+	    else
+		text = g_strdup (_("Live stream:"));
 	    
+	    gtk_label_set_text (GTK_LABEL (bar->priv->label_text), text);
 	}
 	
 	g_free (text);



More information about the Xfce4-commits mailing list