[totem] main: Fix crash when browsing Euronews source



commit aa00571190e1d8d7d4d379835e44b6b55a4c1b31
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Jun 4 18:33:36 2014 +0200

    main: Fix crash when browsing Euronews source
    
    In some locations, because the Euronews source would give out broken
    URIs such as:
    UNAVAILABLEUNAVAILABLE playpath=UNAVAILABLE swfVfy=1 
swfUrl=http://euronews.com/media/player_live_1_14.swf live=1
    
    https://bugzilla.gnome.org/show_bug.cgi?id=731224

 src/totem-grilo.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/totem-grilo.c b/src/totem-grilo.c
index 349ef7e..ba12364 100644
--- a/src/totem-grilo.c
+++ b/src/totem-grilo.c
@@ -338,7 +338,7 @@ can_remove (GrlSource *source,
                return CAN_REMOVE_FALSE;
 
        scheme = g_uri_parse_scheme (url);
-       ret = g_str_equal (scheme, "file") ? CAN_REMOVE_TRUE : CAN_REMOVE_FALSE;
+       ret = (g_strcmp0 (scheme, "file") == 0) ? CAN_REMOVE_TRUE : CAN_REMOVE_FALSE;
        g_free (scheme);
 
        if (ret == CAN_REMOVE_TRUE)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]