mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
games-emulation/pcsx2: fix cubeb alsa UB
Couldn't reproduce, but this seems to be UB and may cause all sort of problems randomly. Hopefully upstream cubeb will look at it eventually (still not merged). Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
15
games-emulation/pcsx2/files/pcsx2-2.6.3-cubeb-alsa.patch
Normal file
15
games-emulation/pcsx2/files/pcsx2-2.6.3-cubeb-alsa.patch
Normal file
@@ -0,0 +1,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()) {
|
||||
@@ -90,6 +90,7 @@ PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.7.5913-musl-cache.patch
|
||||
"${FILESDIR}"/${PN}-2.5.317-flags.patch
|
||||
"${FILESDIR}"/${PN}-2.6.3-climits.patch
|
||||
"${FILESDIR}"/${PN}-2.6.3-cubeb-alsa.patch
|
||||
)
|
||||
|
||||
CMAKE_QA_COMPAT_SKIP=1 #957976
|
||||
@@ -92,6 +92,7 @@ PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.7.5913-musl-cache.patch
|
||||
"${FILESDIR}"/${PN}-2.5.317-flags.patch
|
||||
"${FILESDIR}"/${PN}-2.6.3-climits.patch
|
||||
"${FILESDIR}"/${PN}-2.6.3-cubeb-alsa.patch
|
||||
)
|
||||
|
||||
CMAKE_QA_COMPAT_SKIP=1 #957976
|
||||
|
||||
Reference in New Issue
Block a user