diff options
author | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2018-01-19 12:18:45 +0000 |
---|---|---|
committer | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2018-01-19 12:18:45 +0000 |
commit | 13d57a70666b979dd2a80cdaaa233ee672a8d4be (patch) | |
tree | abd470f9665b9a7b49367bd5c87a881f3f984967 /src/VBox/Devices/Audio/DevSB16.cpp | |
parent | 4e15c80e99d369f14d36f9965286425e11086bd8 (diff) | |
download | VirtualBox-svn-13d57a70666b979dd2a80cdaaa233ee672a8d4be.tar.gz |
Audio: Made attaching of backend streams non-fatal, as backends could not be attached to one's LUN (yet).
git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@70642 cfe28804-0f27-0410-a406-dd0f0b0b656f
Diffstat (limited to 'src/VBox/Devices/Audio/DevSB16.cpp')
-rw-r--r-- | src/VBox/Devices/Audio/DevSB16.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/VBox/Devices/Audio/DevSB16.cpp b/src/VBox/Devices/Audio/DevSB16.cpp index e79aa2081e4..64a3dd55207 100644 --- a/src/VBox/Devices/Audio/DevSB16.cpp +++ b/src/VBox/Devices/Audio/DevSB16.cpp @@ -2367,8 +2367,11 @@ static int sb16OpenOut(PSB16STATE pThis, PPDMAUDIOSTREAMCFG pCfg) RTListForEach(&pThis->lstDrv, pDrv, SB16DRIVER, Node) { int rc2 = sb16CreateDrvStream(pThis, pCfg, pDrv); - if (RT_SUCCESS(rc)) - rc = rc2; + if (RT_FAILURE(rc2)) + LogFunc(("Attaching stream failed with %Rrc\n", rc2)); + + /* Do not pass failure to rc here, as there might be drivers which aren't + * configured / ready yet. */ } sb16UpdateVolume(pThis); |