summaryrefslogtreecommitdiffstats
path: root/player/core.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-03-03 23:53:12 +0100
committerwm4 <wm4@nowhere>2014-03-03 23:53:12 +0100
commit59d9007e15fe30fd0ed24580eb461ae02d497f40 (patch)
treed12f8a611c7d334803c66f80af18f6a5e0f9bb37 /player/core.h
parent082b1cdeaa4fb720cca6e9cbad19c83df69f448c (diff)
downloadmpv-59d9007e15fe30fd0ed24580eb461ae02d497f40.tar.bz2
mpv-59d9007e15fe30fd0ed24580eb461ae02d497f40.tar.xz
player: make separation between user/automatic track selection stronger
For example, consider the case when audio initialization fails. Then the audio track is deselected. Before this commit, this would have been equivalent to the user disabling audio. This is bad when multiple files are played at once (the next file would have audio disabled, even if it works), or if playback resume is used (if e.g. audio output failed to initialize, then audio would be disabled when resuming, even if the system's audio driver was fixed).
Diffstat (limited to 'player/core.h')
-rw-r--r--player/core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/player/core.h b/player/core.h
index 9ece9ebb4d..fd9be5bcd4 100644
--- a/player/core.h
+++ b/player/core.h
@@ -385,6 +385,8 @@ void mp_switch_track(struct MPContext *mpctx, enum stream_type type,
void mp_switch_track_n(struct MPContext *mpctx, int order,
enum stream_type type, struct track *track);
void mp_deselect_track(struct MPContext *mpctx, struct track *track);
+void mp_mark_user_track_selection(struct MPContext *mpctx, int order,
+ enum stream_type type);
struct track *mp_track_by_tid(struct MPContext *mpctx, enum stream_type type,
int tid);
bool timeline_set_part(struct MPContext *mpctx, int i, bool force);