summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2014-06-04 18:33:36 +0200
committerBastien Nocera <hadess@hadess.net>2014-06-04 18:51:53 +0200
commit773e85fb0e4c4f33cd4a26141a7f5403fbd0ec13 (patch)
treef50cbf1450c1691e8b0afafbe71884592ba76652
parent7d4198d69bccaa9c13d0aacc913f386a1baa4717 (diff)
downloadtotem-773e85fb0e4c4f33cd4a26141a7f5403fbd0ec13.tar.gz
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
-rw-r--r--src/totem-grilo.c2
1 files changed, 1 insertions, 1 deletions
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)