diff options
author | Jan Ekström <jeebjp@gmail.com> | 2021-03-07 23:53:19 +0200 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2021-03-09 23:26:26 +0200 |
commit | eef281e89eff6e21a67a106d27fd38979ad20752 (patch) | |
tree | 0ca9af346ef0d302b3ab6019669057ab184a0637 /player/core.h | |
parent | 4f07607888541e6eb40fc5c3a1edfeb84aacb0f7 (diff) | |
download | mpv-eef281e89eff6e21a67a106d27fd38979ad20752.tar.bz2 mpv-eef281e89eff6e21a67a106d27fd38979ad20752.tar.xz |
player/{core,loadfile}: make cover art loading more explicit
Now loading cover art through mp_add_external_file requires an
additional argument to be set to true. This way not all video-add
commands end up being marked as cover art when they move through
mp_add_external_file, as originally changed in 55d7f9ded197d82d172b7baf74b1a07640361ae8 .
Additionally, this lets us clean up some logic that would otherwise be
duplicated between open_external_files and autoload_external_files, if
the logic had been kept split from mp_add_external_file.
Fixes #8358
Diffstat (limited to 'player/core.h')
-rw-r--r-- | player/core.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/player/core.h b/player/core.h index f2f0a15a00..fcb513bed1 100644 --- a/player/core.h +++ b/player/core.h @@ -528,7 +528,8 @@ void mp_abort_trigger_locked(struct MPContext *mpctx, struct mp_abort_entry *abort); void uninit_player(struct MPContext *mpctx, unsigned int mask); int mp_add_external_file(struct MPContext *mpctx, char *filename, - enum stream_type filter, struct mp_cancel *cancel); + enum stream_type filter, struct mp_cancel *cancel, + bool cover_art); void mark_track_selection(struct MPContext *mpctx, int order, enum stream_type type, int value); #define FLAG_MARK_SELECTION 1 |