summaryrefslogtreecommitdiffstats
path: root/player/core.h
diff options
context:
space:
mode:
authorZehua Chen <chenzh1993@gmail.com>2018-01-27 15:27:58 -0500
committerKevin Mitchell <kevmitch@gmail.com>2018-02-10 06:50:32 -0800
commit000a0e2775f47033ec1f6f933cb208bb608800b8 (patch)
treeba61b16183ed36fad4986ec00309848cab9af320 /player/core.h
parent6161cfd781974f8471b9ab99016db1d8bb8d33e7 (diff)
downloadmpv-000a0e2775f47033ec1f6f933cb208bb608800b8.tar.bz2
mpv-000a0e2775f47033ec1f6f933cb208bb608800b8.tar.xz
player: correctly set track information on adding external files
Before this commit, auto_loaded and lang were only set for the first track in auto-loaded external files. Likewise, for the title and lang arguments to the sub-add and audio-add commands. Fixes #5432
Diffstat (limited to 'player/core.h')
-rw-r--r--player/core.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/player/core.h b/player/core.h
index b11341bedb..104d26cd48 100644
--- a/player/core.h
+++ b/player/core.h
@@ -487,8 +487,8 @@ struct playlist_entry *mp_check_playlist_resume(struct MPContext *mpctx,
// loadfile.c
void mp_abort_playback_async(struct MPContext *mpctx);
void uninit_player(struct MPContext *mpctx, unsigned int mask);
-struct track *mp_add_external_file(struct MPContext *mpctx, char *filename,
- enum stream_type filter);
+int mp_add_external_file(struct MPContext *mpctx, char *filename,
+ enum stream_type filter);
#define FLAG_MARK_SELECTION 1
void mp_switch_track(struct MPContext *mpctx, enum stream_type type,
struct track *track, int flags);