[vlc-commits] wasapi: fix S/PDIF check
Rémi Denis-Courmont
git at videolan.org
Sat Mar 1 20:44:21 CET 2014
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Mar 1 21:41:59 2014 +0200| [83fbb46447bb3dc764bc7bf5adbdb0e51b9fc2e8] | committer: Rémi Denis-Courmont
wasapi: fix S/PDIF check
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=83fbb46447bb3dc764bc7bf5adbdb0e51b9fc2e8
---
modules/audio_output/wasapi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/audio_output/wasapi.c b/modules/audio_output/wasapi.c
index b006c8c..acec06d 100644
--- a/modules/audio_output/wasapi.c
+++ b/modules/audio_output/wasapi.c
@@ -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,
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 */
return E_NOTIMPL;
More information about the vlc-commits
mailing list