From 000a0e2775f47033ec1f6f933cb208bb608800b8 Mon Sep 17 00:00:00 2001 From: Zehua Chen Date: Sat, 27 Jan 2018 15:27:58 -0500 Subject: 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 --- player/core.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'player/core.h') 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); -- cgit v1.2.3