Fixed crash on Windows
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403441
This commit is contained in:
parent
f47511d4fb
commit
7ed73609cf
1 changed files with 4 additions and 2 deletions
|
@ -625,7 +625,9 @@ SDL_AudioInit(const char *driver_name)
|
||||||
initialized = 1;
|
initialized = 1;
|
||||||
best_choice = i;
|
best_choice = i;
|
||||||
} else if (rc == 1) { /* init'd, but can't see any devices. */
|
} else if (rc == 1) { /* init'd, but can't see any devices. */
|
||||||
|
if (current_audio.impl.Deinitialize) {
|
||||||
current_audio.impl.Deinitialize();
|
current_audio.impl.Deinitialize();
|
||||||
|
}
|
||||||
if (best_choice == -1) {
|
if (best_choice == -1) {
|
||||||
best_choice = i;
|
best_choice = i;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue