diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-11-12 15:55:20 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-11-12 15:55:20 +0100 |
commit | f6140ff1c9ec493d947da5b346508846e7a1a06f (patch) | |
tree | c01b9164ee4b0d46b6670ccee45f6181c6237d7f /src/VideoSupport.vala | |
parent | 0f67b3cc674377559e66c5a6729fd499049a992f (diff) | |
parent | 2492891f112caac6076ce49721d9d5d78a152c3a (diff) |
Update upstream source from tag 'upstream/0.26.4'
Update to upstream version '0.26.4'
with Debian dir fae3cc48a8ec2f37979206f90dc828cbebee14c4
Diffstat (limited to 'src/VideoSupport.vala')
-rw-r--r-- | src/VideoSupport.vala | 3 |
1 files changed, 2 insertions, 1 deletions
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); |