mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-27 15:55:16 +00: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
ee25d81197
commit
e0c1488a4c
@ -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…
x
Reference in New Issue
Block a user