[totem-pl-parser] lib: Handle both variants for Qt Linguist files



commit f21c8e2b283ef9304f7e930c1b65a4f3bb02f202
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Jun 15 14:34:37 2012 +0100

    lib: Handle both variants for Qt Linguist files

 plparse/totem-pl-parser.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plparse/totem-pl-parser.c b/plparse/totem-pl-parser.c
index 1a8b093..14b8b25 100644
--- a/plparse/totem-pl-parser.c
+++ b/plparse/totem-pl-parser.c
@@ -1827,7 +1827,8 @@ totem_pl_parser_parse_internal (TotemPlParser *parser,
 	}
 
 	/* We're much more likely to have an MP2T file instead */
-	if (g_strcmp0 (mimetype, "application/x-linguist") == 0) {
+	if (g_strcmp0 (mimetype, "application/x-linguist") == 0 ||
+	    g_strcmp0 (mimetype, "text/vnd.trolltech.linguist") == 0) {
 		g_free (mimetype);
 		mimetype = g_strdup ("video/mp2t");
 	}



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