[totem-pl-parser] plparse: Pass 0 rather than -1 to g_content_type_guess()



commit f8fda15d30533811e97e0c1c573fb2b1c4d5ee29
Author: Philip Withnall <philip tecnocode co uk>
Date:   Sun Jul 29 21:23:51 2012 +0200

    plparse: Pass 0 rather than -1 to g_content_type_guess()
    
    Passing -1 was incorrect, and GLib was changed to disallow it in
    139c1ce9884a91be167ab9d48d3c4b0df89dd112.
    
    This fixes the âresolutionâ test case.

 plparse/totem-pl-parser.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plparse/totem-pl-parser.c b/plparse/totem-pl-parser.c
index e0a4929..7dca3b6 100644
--- a/plparse/totem-pl-parser.c
+++ b/plparse/totem-pl-parser.c
@@ -986,7 +986,7 @@ is_probably_dir (const char *filename)
 	short_name = relative_uri_remove_query (filename, NULL);
 	if (short_name == NULL)
 		short_name = g_strdup (filename);
-	content_type = g_content_type_guess (short_name, NULL, -1, NULL);
+	content_type = g_content_type_guess (short_name, NULL, 0, NULL);
 	if (g_content_type_is_unknown (content_type) != FALSE) {
 		guint i;
 		for (i = 0; i < G_N_ELEMENTS (suffixes); i++) {



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