1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-20 02:09:52 +00:00
mpv/mpvcore
wm4 20988ee607 command: don't allow changing volume if no audio initialized
Changing volume when audio is disabled was a feature request (github
issue #215), and was introduced with commit 327a779.

But trying to fix github issue #280 (volume is not correct in no-audio
mode, and if audio is re-enabled, the volume set in no-audio mode isn't
set), I concluded that it's not worth the trouble and the current
implementation is questionable all around. (For example, you can't
change the real volume in no-audio mode, even if the AO is open - this
could happen with gapless audio.) It's hard to get right, and the
current mixer code is already hilariously overcomplicated. (Virtually
all of mixer.c is an amalgamation of various obscure corner cases.)

So just remove this feature again.

Note that "options/volume" and "options/mute" still can be used in
idle mode to adjust the volume used next time, though these properties
can't be used during playback and thus not in audio-only mode.

Querying the volume still "works" in audio-only mode, though it can
return bogus values.
2013-10-12 18:57:02 +02:00
..
input command: add commands for displaying overlays 2013-10-05 22:46:55 +02:00
lua osc: Okay, don't multiply the cache value 2013-10-07 00:56:11 +02:00
timeline matroska: fix uninitialized memory accesses with ordered chapters 2013-09-26 18:20:32 +02:00
asxparser.c core: add a playlist demuxer 2013-08-26 10:09:45 +02:00
asxparser.h
av_common.c
av_common.h
av_log.c av_log: show ffmpeg "info" messages with -v only 2013-09-15 00:43:43 +02:00
av_log.h
av_opts.c
av_opts.h
bstr.c bstr: make UTF-8 check stricter 2013-08-15 23:40:03 +02:00
bstr.h bstr: add UTF-8 validation and sanitation functions 2013-08-15 23:40:02 +02:00
charset_conv.c sub: don't print detected charset if it's UTF-8 2013-08-15 23:40:04 +02:00
charset_conv.h sub: don't print detected charset if it's UTF-8 2013-08-15 23:40:04 +02:00
codecs.c
codecs.h
command.c command: don't allow changing volume if no audio initialized 2013-10-12 18:57:02 +02:00
command.h command: add commands for displaying overlays 2013-10-05 22:46:55 +02:00
cpudetect.c
cpudetect.h
encode_lavc.c
encode_lavc.h
encode.h
m_config.c m_option: rename struct member named "new" 2013-08-19 13:03:08 +02:00
m_config.h
m_option.c mplayer: m_option: fix clang -Wformat compiler warning 2013-09-14 20:49:55 +02:00
m_option.h mplayer: start track IDs from 1 rather than 0 2013-08-21 18:32:42 +02:00
m_property.c command: when changing a property, allow showing an extra OSD message 2013-09-21 00:07:42 +02:00
m_property.h command: when changing a property, allow showing an extra OSD message 2013-09-21 00:07:42 +02:00
mp_common.c mp_common: add function which accepts a format string to format playback time 2013-09-15 02:51:17 +02:00
mp_common.h Fix previous commit 2013-09-25 22:44:12 +02:00
mp_core.h mplayer: fix looping of very short files 2013-09-29 21:10:45 +02:00
mp_lua.c input: translate mouse position to OSD space early 2013-09-27 15:39:28 +02:00
mp_lua.h Add initial Lua scripting support 2013-09-26 01:28:58 +02:00
mp_memory_barrier.h
mp_msg.c
mp_msg.h Some more mp_msg conversions 2013-08-23 23:30:09 +02:00
mp_osd.h
mp_ring.c mp_ring: fix mp_ring_read_cb() when read wraps around 2013-10-08 20:03:57 +02:00
mp_ring.h
mp_talloc.h
mplayer.c options: --loop=N means playback N times, not N+1 times 2013-10-12 18:57:02 +02:00
mpv_global.h
options.c options: --loop=N means playback N times, not N+1 times 2013-10-12 18:57:02 +02:00
options.h core: add --force-window 2013-10-02 01:39:28 +02:00
parser-cfg.c
parser-cfg.h
parser-mpcmd.c core: add a playlist demuxer 2013-08-26 10:09:45 +02:00
parser-mpcmd.h
path.c macosx: move bundle path stuff to path-macosx.m 2013-09-18 19:30:11 +02:00
path.h path: add a common mp_is_url() function 2013-09-04 16:15:08 +02:00
playlist_parser.c playlist: check for NULL on caller site 2013-10-12 18:57:02 +02:00
playlist_parser.h core: add a playlist demuxer 2013-08-26 10:09:45 +02:00
playlist.c playlist: check for NULL on caller site 2013-10-12 18:57:02 +02:00
playlist.h mplayer: fix looping of very short files 2013-09-29 21:10:45 +02:00
resolve_quvi9.c libquvi9: work around insane interaction between libquvi and libkdecore 2013-10-12 18:56:03 +02:00
resolve_quvi.c quvi: coerce libquvi 0.4 support into allowing format switching 2013-09-10 16:38:34 +02:00
resolve.h quvi: coerce libquvi 0.4 support into allowing format switching 2013-09-10 16:38:34 +02:00
screenshot.c core: add --force-window 2013-10-02 01:39:28 +02:00
screenshot.h
version.c