[totem-pl-parser] plparse: Remove dep on newer versions of glib
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem-pl-parser] plparse: Remove dep on newer versions of glib
- Date: Tue, 18 Sep 2012 14:31:59 +0000 (UTC)
commit e2f4f8d73bd8f6bf6935046c0dd0530124c02486
Author: Bastien Nocera <hadess hadess net>
Date: Tue Sep 18 16:28:51 2012 +0200
plparse: Remove dep on newer versions of glib
We should still work with older versions.
https://bugzilla.gnome.org/show_bug.cgi?id=684292
plparse/totem-pl-parser.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/plparse/totem-pl-parser.c b/plparse/totem-pl-parser.c
index aeaf3ea..a4e8735 100644
--- a/plparse/totem-pl-parser.c
+++ b/plparse/totem-pl-parser.c
@@ -1835,8 +1835,10 @@ totem_pl_parser_parse_internal (TotemPlParser *parser,
/* Not a directory on http though */
if (g_strcmp0 (mimetype, "inode/directory") == 0 &&
- g_file_has_uri_scheme (file, "http"))
- g_clear_pointer (&mimetype, g_free);
+ g_file_has_uri_scheme (file, "http")) {
+ g_free (mimetype);
+ mimetype = NULL;
+ }
DEBUG(file, g_print ("_get_mime_type_for_name for '%s' returned '%s'\n", uri, mimetype));
if (mimetype == NULL || strcmp (UNKNOWN_TYPE, mimetype) == 0
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]