[totem-pl-parser] Only ever ignore files that we can discover as text/plain



commit 1c6dc284ba809ccd398c35bb20654da16ab39520
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Sep 24 19:31:39 2009 +0100

    Only ever ignore files that we can discover as text/plain
    
    Otherwise we'd be ignoring files for which we don't have magic,
    which seems to happen a lot for MPEG-4 files, and their ever-growing
    ftypes.

 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 eebc2e8..2041fdd 100644
--- a/plparse/totem-pl-parser.c
+++ b/plparse/totem-pl-parser.c
@@ -1881,7 +1881,7 @@ totem_pl_parser_parse_internal (TotemPlParser *parser,
 					DEBUG(file, g_print ("URI '%s' dual type has type '%s' from data\n", uri, mimetype));
 				}
 				/* If it's _still_ a text/plain, we don't want it */
-				if (mimetype == NULL || strcmp (mimetype, "text/plain") == 0) {
+				if (mimetype != NULL && strcmp (mimetype, "text/plain") == 0) {
 					ret = TOTEM_PL_PARSER_RESULT_IGNORED;
 					g_free (mimetype);
 					mimetype = NULL;



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