[vlc-commits] wasapi: fallback to DirectX while S/PDIF is unimplemented
Rémi Denis-Courmont
git at videolan.org
Wed May 16 17:30:08 CEST 2012
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed May 16 18:27:37 2012 +0300| [553b124d5d1d13e6078ed70ebf42e829f8dabeea] | committer: Rémi Denis-Courmont
wasapi: fallback to DirectX while S/PDIF is unimplemented
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=553b124d5d1d13e6078ed70ebf42e829f8dabeea
---
modules/audio_output/wasapi.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/modules/audio_output/wasapi.c b/modules/audio_output/wasapi.c
index 9865f99..887f6b6 100644
--- a/modules/audio_output/wasapi.c
+++ b/modules/audio_output/wasapi.c
@@ -252,6 +252,11 @@ static int Open(vlc_object_t *obj)
audio_output_t *aout = (audio_output_t *)obj;
HRESULT hr;
+ if (AOUT_FMT_SPDIF(&aout->format) && !aout->b_force
+ && var_InheritBool(aout, "spdif"))
+ /* Fallback to other plugin until pass-through is implemented */
+ return VLC_EGENERIC;
+
aout_sys_t *sys = malloc(sizeof (*sys));
if (unlikely(sys == NULL))
return VLC_ENOMEM;
More information about the vlc-commits
mailing list