Message ID | 20200120024422.GA686@PC-SEANJYE (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | audio/sdl2: fix unrecognized audio format | expand |
diff -ru ../orig/qemu-4.2.0/audio/sdlaudio.c ../qemu-4.2.0/audio/sdlaudio.c --- ../orig/qemu-4.2.0/audio/sdlaudio.c 2019-12-12 10:20:47.000000000 -0800 +++ ../qemu-4.2.0/audio/sdlaudio.c 2020-01-15 15:56:25.059841600 -0800 @@ -147,10 +147,11 @@ } #endif - status = SDL_OpenAudio (req, obt); + status = SDL_OpenAudio (req, NULL); if (status) { sdl_logerr ("SDL_OpenAudio failed\n"); } + memcpy(obt, req, sizeof(SDL_AudioSpec)); #ifndef _WIN32 err = pthread_sigmask (SIG_SETMASK, &old, NULL);