mirror of
https://github.com/mpv-player/mpv
synced 2024-12-21 22:30:22 +00:00
62daa08d3b
Consider: mpv --volume 10 file1.mkv file2.mkv Before this commit, the volume was reset to 10 when playing file2.mkv. This was inconsistent to most other options. E.g. --brightness is a rather similar case. In general, settings should never be reset when playing the next file, unless the option was explicitly marked file-local. This commit corrects the behavior of the --volume and --mute options. File local --volume still works as expected: mpv --{ --volume 10 file1.mkv file2.mkv --} This sets the volume always to 10 on playback start. Move the m_config_leave_file_local() call down so that the mixer code in uninit_player() can set the option volume and mute variables without overwriting the global option values. Another subtle issue is that we don't want to set volume if there's no need to, which is why the user_set_volume/mute fields are introduced. This is important because setting the volume might change the system volume depending on other options. |
||
---|---|---|
.. | ||
decode | ||
filter | ||
out | ||
format.c | ||
format.h | ||
mixer.c | ||
mixer.h | ||
reorder_ch.c | ||
reorder_ch.h |