blob: a66fbe0a642bdb3371d234f24c244ec73badc4e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
A user reported crashes while interacting with menus while a game
is running and using ALSA, and that this fixes it for them.
https://github.com/mozilla/cubeb/pull/829
--- a/3rdparty/cubeb/src/cubeb.c
+++ b/3rdparty/cubeb/src/cubeb.c
@@ -741,4 +741,8 @@
rv = context->ops->enumerate_devices(context, devtype, collection);
+ if (rv != CUBEB_OK) {
+ collection->device = NULL;
+ collection->count = 0;
+ }
if (cubeb_log_get_callback()) {
|