audio/sdl: return on error
authormalc <av1474@comtv.ru>
Sat, 7 Aug 2010 16:03:05 +0000 (20:03 +0400)
committermalc <av1474@comtv.ru>
Sat, 7 Aug 2010 16:04:24 +0000 (20:04 +0400)
Signed-off-by: malc <av1474@comtv.ru>
audio/sdlaudio.c

index 0f23fd3..b74dcfa 100644 (file)
@@ -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) {