summaryrefslogtreecommitdiff
path: root/src/VideoSupport.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-12-15 20:38:57 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-12-15 20:38:57 +0100
commitf1353e9ffd34db5f755c7da0b3f9c10638fbfd38 (patch)
treea1f2ab30332a6383b0677bfcc2aec687b98851d6 /src/VideoSupport.vala
parentf8ca421bdacee8851965a4b802ada1d2366bdbc1 (diff)
parentede50c561ec9811704821a9ea0f04c3d6c20b5af (diff)
Merge branch 'release/0.26.4-1'0.26.4-1
Diffstat (limited to 'src/VideoSupport.vala')
-rw-r--r--src/VideoSupport.vala3
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);