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

commit 88d822a1ea271394849b81dc0311d4b5e84272c0
Author: Ali Abdallah <[email protected]>
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);
_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to