diff options
author | wm4 <wm4@nowhere> | 2016-08-09 16:22:06 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-08-09 17:09:29 +0200 |
commit | eab92cec60d92e0de2ea53d4d01052f4d7acc5d5 (patch) | |
tree | cb6202b24b7407283dd5f28e650d3fc869a7e33d /player/audio.c | |
parent | 3759a3f40bed92b161342532445718906f903234 (diff) | |
download | mpv-eab92cec60d92e0de2ea53d4d01052f4d7acc5d5.tar.bz2 mpv-eab92cec60d92e0de2ea53d4d01052f4d7acc5d5.tar.xz |
player: add --audio-stream-silence
Completely insane that this has to be done. Crap for compensating HDMI
crap.
Diffstat (limited to 'player/audio.c')
-rw-r--r-- | player/audio.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/player/audio.c b/player/audio.c index e186a375b6..1f0fe9d0a0 100644 --- a/player/audio.c +++ b/player/audio.c @@ -382,6 +382,9 @@ static void reinit_audio_filters_and_output(struct MPContext *mpctx) if (!opts->audio_output_channels.set || opts->audio_output_channels.auto_safe) ao_flags |= AO_INIT_SAFE_MULTICHANNEL_ONLY; + if (opts->audio_stream_silence) + ao_flags |= AO_INIT_STREAM_SILENCE; + mp_chmap_sel_list(&afs->output.channels, opts->audio_output_channels.chmaps, opts->audio_output_channels.num_chmaps); |