diff options
author | wm4 <wm4@nowhere> | 2012-09-08 23:02:02 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-09-18 21:08:20 +0200 |
commit | c32082a1a7634e8a5e0bb2551056fe64e357d395 (patch) | |
tree | e02f18ad6c2f0b2745b2c54974103cf8552d0680 /mp_core.h | |
parent | c8154630bfc1b35da59e7db8c09e85c4f8d5904c (diff) | |
download | mpv-c32082a1a7634e8a5e0bb2551056fe64e357d395.tar.bz2 mpv-c32082a1a7634e8a5e0bb2551056fe64e357d395.tar.xz |
mplayer: selectively reset track selection when playing multiple files
Normally, video/audio/sub track selection is persistent across files
played in the same mplayer instance. This is wanted, because settings
should not be reset across files in general. However, if the track
layout of a file is completely different from the previous, this will
essentially select random tracks. In this case, keeping the track
selection is confusing and unwanted.
Reset the track selection to default if the track layout changes. The
track layout is determined by number of tracks, track order, default
flag, whether the track is an external subtitle, and track language.
If a track layout change is detected when playing a new file, the -sid,
-aid and -vid options are reset to "auto".
This behavior is enabled only if the user selects tracks manually (via
keybinds and the "switch_audio" slave properties etc.). If no user
interactions take place, options specified on the command line will
follow the old behavior.
Diffstat (limited to 'mp_core.h')
-rw-r--r-- | mp_core.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -251,6 +251,7 @@ typedef struct MPContext { struct screenshot_ctx *screenshot_ctx; + char *track_layout_hash; } MPContext; |