mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 20:13:36 +00:00
Looks like some versions of pw_stream_flush()
crash if the stream was
never connected. If we can't connect, let's destroy the stream immediately to avoid this from happening later when the plugin cleans up.
This commit is contained in:
parent
eacb0ea034
commit
51275f35ba
@ -404,6 +404,10 @@ bool PipeWireOut::StartPipeWire(IBuffer* buffer) {
|
||||
}
|
||||
|
||||
cleanup:
|
||||
if (this->pwStream) {
|
||||
pw_stream_destroy(this->pwStream);
|
||||
this->pwStream = nullptr;
|
||||
}
|
||||
pw_thread_loop_unlock(this->pwThreadLoop);
|
||||
::debug->Error(TAG, "stream not initialized");
|
||||
this->StopPipeWire();
|
||||
|
Loading…
Reference in New Issue
Block a user