Dive pictures: Recognize video files

When generating thumbnails, test for video files. If it is, use
a dummy-thumbnail. Write only the type (video), but no image to
the thumbnail cache, for forward-compatibility.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2018-05-15 20:47:35 +02:00 committed by Dirk Hohndel
parent 9a844a075c
commit b28dba6087
5 changed files with 83 additions and 47 deletions

View file

@ -10,10 +10,11 @@ struct metadata {
};
enum mediatype_t {
MEDIATYPE_IO_ERROR, // Couldn't read file
MEDIATYPE_UNKNOWN, // Couldn't identify file
MEDIATYPE_UNKNOWN, // Couldn't (yet) identify file
MEDIATYPE_IO_ERROR, // Couldn't read file
MEDIATYPE_PICTURE,
MEDIATYPE_VIDEO,
MEDIATYPE_STILL_LOADING, // Still processing in the background
};
#ifdef __cplusplus