[totem/gnome-3-12] main: Fix crash when browsing Euronews source
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/gnome-3-12] main: Fix crash when browsing Euronews source
- Date: Wed, 4 Jun 2014 16:52:04 +0000 (UTC)
commit 773e85fb0e4c4f33cd4a26141a7f5403fbd0ec13
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 98730c4..ba61cec 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]