summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormalc2010-08-07 18:03:05 +0200
committermalc2010-08-07 18:04:24 +0200
commit60592edde46e26f9baad650538d96ca5ef45c603 (patch)
tree9d6e3e10c02c595d1fc8828b3d84e6d6a8ec66d1
parentmips: Add support for VInt and VEIC irq modes (diff)
downloadqemu-60592edde46e26f9baad650538d96ca5ef45c603.tar.gz
qemu-60592edde46e26f9baad650538d96ca5ef45c603.tar.xz
qemu-60592edde46e26f9baad650538d96ca5ef45c603.zip
audio/sdl: return on error
Signed-off-by: malc <av1474@comtv.ru>
-rw-r--r--audio/sdlaudio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/audio/sdlaudio.c b/audio/sdlaudio.c
index 0f23fd372a..b74dcfa734 100644
--- a/audio/sdlaudio.c
+++ b/audio/sdlaudio.c
@@ -191,6 +191,7 @@ static int sdl_open (SDL_AudioSpec *req, SDL_AudioSpec *obt)
err = sigfillset (&new);
if (err) {
dolog ("sdl_open: sigfillset failed: %s\n", strerror (errno));
+ return -1;
}
err = pthread_sigmask (SIG_BLOCK, &new, &old);
if (err) {