From 2492891f112caac6076ce49721d9d5d78a152c3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 12 Nov 2017 15:53:58 +0100 Subject: New upstream version 0.26.4 --- src/VideoSupport.vala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/VideoSupport.vala') diff --git a/src/VideoSupport.vala b/src/VideoSupport.vala index 5076a31..d742dda 100644 --- a/src/VideoSupport.vala +++ b/src/VideoSupport.vala @@ -74,7 +74,8 @@ public class VideoReader { public static bool is_supported_video_filename(string filename) { string mime_type; mime_type = ContentType.guess(filename, new uchar[0], null); - if (mime_type.length >= 6 && mime_type[0:6] == "video/") { + // Guessed mp4 from filename has application/ as prefix, so check for mp4 in the end + if (mime_type.has_prefix ("video/") || mime_type.has_suffix("mp4")) { string? extension = null; string? name = null; disassemble_filename(filename, out name, out extension); -- cgit v1.2.3