audio: Change references to `streams[i]` to previously-calculated `stream`.
Reference PR #9096.main
parent
751917cb6f
commit
4d000ae3bd
|
@ -1795,8 +1795,8 @@ int SDL_BindAudioStreams(SDL_AudioDeviceID devid, SDL_AudioStream **streams, int
|
||||||
for (j = 0; j < i; j++) {
|
for (j = 0; j < i; j++) {
|
||||||
SDL_UnlockMutex(streams[j]->lock);
|
SDL_UnlockMutex(streams[j]->lock);
|
||||||
}
|
}
|
||||||
if (streams[i]) {
|
if (stream) {
|
||||||
SDL_UnlockMutex(streams[i]->lock);
|
SDL_UnlockMutex(stream->lock);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue