diff options
author | wm4 <wm4@nowhere> | 2015-10-06 19:59:02 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-10-06 19:59:02 +0200 |
commit | 66aa54d319755589e846efe53f917d2667219e1a (patch) | |
tree | 3525dabf15ce94ca6a03495c8347495e27fa143d /player | |
parent | 288eaacd85b62c73fbffa06cc46eb9a58ea48a1b (diff) | |
download | mpv-66aa54d319755589e846efe53f917d2667219e1a.tar.bz2 mpv-66aa54d319755589e846efe53f917d2667219e1a.tar.xz |
audio: re-probe spdif if AO is reloaded
Makes the spdif automagic work better on audio hotplugging.
Diffstat (limited to 'player')
-rw-r--r-- | player/audio.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/player/audio.c b/player/audio.c index 4bcf69a00f..9ff253ae92 100644 --- a/player/audio.c +++ b/player/audio.c @@ -473,8 +473,10 @@ void fill_audio_out_buffers(struct MPContext *mpctx, double endpts) if (mpctx->ao && ao_query_and_reset_events(mpctx->ao, AO_EVENT_RELOAD)) { ao_reset(mpctx->ao); uninit_audio_out(mpctx); - if (d_audio) + if (d_audio) { + mpctx->d_audio->spdif_passthrough = true; mpctx->audio_status = STATUS_SYNCING; + } } if (!d_audio) |