diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-04-02 23:29:33 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-04-02 23:29:33 +0200 |
commit | 3ca7ed72c2f3a046e94213a8c26d80eafde9585c (patch) | |
tree | 67959bc624c4af5ad9d2e9ae805295097ca0a4ea /src/QuickMedia.cpp | |
parent | 42ab6b1f7ad01cf87fa611b22313172a30eaff51 (diff) |
FileManager: show video thumbnails, update thumbnail if name is the same but the content has changed (last modified time changed)
Diffstat (limited to 'src/QuickMedia.cpp')
-rw-r--r-- | src/QuickMedia.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index c9a206e..fbc2699 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -1649,7 +1649,7 @@ namespace QuickMedia { const char *args[] = { "curl", "-sLf", "-r", "0-40", "-H", useragent_str, "--", url, nullptr }; exec_program(args, accumulate_string_limit_head, &result, 42); return (result.size() >= 42) - && (memcmp(&result[4], "ftypisom", 8) == 0 || memcmp(&result[4], "ftypmp42", 8) == 0 || memcmp(&result[4], "ftymp42", 7) == 0 || memcmp(&result[4], "fty3gp5", 7) == 0 || memcmp(&result[4], "ftypqt", 6) == 0) + && (memcmp(&result[4], "ftypisom", 8) == 0 || memcmp(&result[4], "ftypmp42", 8) == 0 || memcmp(&result[4], "ftymp42", 7) == 0 || memcmp(&result[4], "ftyp3gp4", 8) == 0|| memcmp(&result[4], "fty3gp5", 7) == 0 || memcmp(&result[4], "ftypqt", 6) == 0) && (memmem(&result[0], result.size(), "moov", 4) == NULL); } |