winepulse.drv: Check that the server connection actually succeeded.
commit327ac6c86a9ff242169f10affb2e6eb179fdcbc0
authorAndrew Eikum <aeikum@codeweavers.com>
Fri, 4 Mar 2016 16:16:15 +0000 (4 10:16 -0600)
committerMichael Stefaniuc <mstefani@winehq.org>
Sun, 3 Apr 2016 20:48:50 +0000 (3 22:48 +0200)
tree09eac85bfd87fb5cee12d485c4fc186729a2d276
parent72ad32b6693ebdc2b9e22dd6c71e623e19aa69f9
winepulse.drv: Check that the server connection actually succeeded.

When there is no PA server running, some older PulseAudio versions
have pa_mainloop_iterate fail instead of setting the connection state
to failed. So, we should also check the connection state after exiting
the loop to ensure it really succeeded before continuing.

Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 0766334d04d00f1de6d601a4b052f7dfedcd9c64)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
dlls/winepulse.drv/mmdevdrv.c