mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-13 13:35:14 +01:00
Merge pull request #4723 from jroweboy/minorfix
Destroy the callback after the stream is destroyed to prevent crashes on close
This commit is contained in:
commit
d5bcb45b2a
@ -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