[totem-pl-parser] plparse: Better debug when mime-types are ignored



commit 32795be620ff1fda6f29088f4eb8d3e30303c1db
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Dec 15 15:48:56 2015 +0100

    plparse: Better debug when mime-types are ignored

 plparse/totem-pl-parser.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/plparse/totem-pl-parser.c b/plparse/totem-pl-parser.c
index 217a6e6..ce425c3 100644
--- a/plparse/totem-pl-parser.c
+++ b/plparse/totem-pl-parser.c
@@ -1738,10 +1738,16 @@ totem_pl_parser_ignore_from_mimetype (TotemPlParser *parser, const char *mimetyp
                return FALSE;
 
        for (i = 0; i < G_N_ELEMENTS (ignore_types); i++) {
-               if (g_content_type_is_a (mimetype, ignore_types[i].mimetype) != FALSE)
+               if (g_content_type_is_a (mimetype, ignore_types[i].mimetype) != FALSE) {
+                       if (parser->priv->debug)
+                               g_print ("Ignoring %s because it's a %s\n", mimetype, 
ignore_types[i].mimetype);
                        return TRUE;
-               if (g_content_type_equals (mimetype, ignore_types[i].mimetype) != FALSE)
+               }
+               if (g_content_type_equals (mimetype, ignore_types[i].mimetype) != FALSE) {
+                       if (parser->priv->debug)
+                               g_print ("Ignoring %s because it's equal to %s\n", mimetype, 
ignore_types[i].mimetype);
                        return TRUE;
+               }
        }
 
        return FALSE;


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