mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
9a844a075c
commit
b28dba6087
5 changed files with 83 additions and 47 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue