[totem-pl-parser] plparse: Don't consider M3U playlists as text/plain
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem-pl-parser] plparse: Don't consider M3U playlists as text/plain
- Date: Fri, 15 Apr 2016 13:50:17 +0000 (UTC)
commit 32b2a71e3bd0b1fae5e94db92816aeddf7934f3e
Author: Bastien Nocera <hadess hadess net>
Date: Fri Apr 15 14:38:02 2016 +0200
plparse: Don't consider M3U playlists as text/plain
Until we have support for private inheritance in shared-mime-info, we
cannot simply ignore HLS playlists as if it were a text file, when
we should pass it on to the player to handle directly.
https://bugzilla.gnome.org/show_bug.cgi?id=752318
plparse/totem-pl-parser.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/plparse/totem-pl-parser.c b/plparse/totem-pl-parser.c
index 93fa451..527cfb4 100644
--- a/plparse/totem-pl-parser.c
+++ b/plparse/totem-pl-parser.c
@@ -1738,7 +1738,11 @@ 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) {
+ /* Up until we have a way to detect private inheritance
+ * in shared-mime-info */
+ if (strcmp (mimetype, "application/vnd.apple.mpegurl") != 0 &&
+ strcmp (mimetype, "audio/x-mpegurl") != 0 &&
+ 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]