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

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


Updating branch refs/heads/master
         to 607b52f830a20b093d5eef3a19c3d1a66bbc6698 (commit)
       from 4f91c3db2998280d8732b503803735c788553b8a (commit)

commit 607b52f830a20b093d5eef3a19c3d1a66bbc6698
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