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:
Weiyi Wang 2019-04-06 14:31:49 -04:00 committed by GitHub
commit d5bcb45b2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,8 +96,6 @@ CubebSink::~CubebSink() {
return;
}
impl->cb = nullptr;
if (cubeb_stream_stop(impl->stream) != CUBEB_OK) {
LOG_CRITICAL(Audio_Sink, "Error stopping cubeb stream");
}