audio: check for pulseaudio daemon pidfile
commitd175505bd68dc35150664a50f51eb9ec1eeee333
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 24 Jan 2019 11:20:53 +0000 (24 12:20 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 24 Jan 2019 12:11:08 +0000 (24 13:11 +0100)
tree0d83eeb84cd9f3373f316ea498200af1d936ea2c
parentf92c7168cdb2a08e183b64f193cdd10535c68c2d
audio: check for pulseaudio daemon pidfile

Check whenever the pulseaudio daemon pidfile is present before trying to
initialize the pulseaudio backend.  Just return NULL if that is not the
case, so qemu will check the next backend in line.

In case the user explicitly configured a non-default pulseaudio server
skip the check.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20190124112055.547-5-kraxel@redhat.com
audio/paaudio.c