mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1143968 - Allow a cubeb_stream in error to be stopped without triggering a fatal assert. r=padenot
This commit is contained in:
parent
f514ac0fac
commit
7c58f24efc
@ -1241,10 +1241,7 @@ int wasapi_stream_stop(cubeb_stream * stm)
|
||||
{
|
||||
auto_lock lock(stm->stream_reset_lock);
|
||||
|
||||
if (!stm->client) {
|
||||
XASSERT(!stm->thread);
|
||||
LOG("stream already stopped\n");
|
||||
} else {
|
||||
if (stm->client) {
|
||||
HRESULT hr = stm->client->Stop();
|
||||
if (FAILED(hr)) {
|
||||
LOG("could not stop AudioClient\n");
|
||||
|
Loading…
Reference in New Issue
Block a user