From 773e85fb0e4c4f33cd4a26141a7f5403fbd0ec13 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Wed, 4 Jun 2014 18:33:36 +0200 Subject: 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/totem-grilo.c b/src/totem-grilo.c index 98730c402..ba61cec56 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) -- cgit v1.2.1