mirror of
https://github.com/citra-mirror/citra.git
synced 2024-08-19 18:13:21 +02:00
Destroy the callback after the stream is destroyed
Prevents a crash on close if the callback was running on a different thread.
This commit is contained in:
parent
14730ed560
commit
f4d0bdd09a
@ -96,8 +96,6 @@ CubebSink::~CubebSink() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl->cb = nullptr;
|
|
||||||
|
|
||||||
if (cubeb_stream_stop(impl->stream) != CUBEB_OK) {
|
if (cubeb_stream_stop(impl->stream) != CUBEB_OK) {
|
||||||
LOG_CRITICAL(Audio_Sink, "Error stopping cubeb stream");
|
LOG_CRITICAL(Audio_Sink, "Error stopping cubeb stream");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user