Commit 83fbb464 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

wasapi: fix S/PDIF check

parent fa4b63c8
...@@ -313,7 +313,7 @@ static unsigned vlc_CheckWaveOrder (const WAVEFORMATEX *restrict wf, ...@@ -313,7 +313,7 @@ static unsigned vlc_CheckWaveOrder (const WAVEFORMATEX *restrict wf,
static HRESULT Start(aout_stream_t *s, audio_sample_format_t *restrict fmt, static HRESULT Start(aout_stream_t *s, audio_sample_format_t *restrict fmt,
const GUID *sid) const GUID *sid)
{ {
if (!s->b_force && var_InheritBool(s, "spdif")) if (!s->b_force && var_InheritBool(s, "spdif") && AOUT_FMT_SPDIF(fmt))
/* Fallback to other plugin until pass-through is implemented */ /* Fallback to other plugin until pass-through is implemented */
return E_NOTIMPL; return E_NOTIMPL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment