mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 557432 - Don't Shutdown() nsAudioStream in Drain() when there's no audio playing. r=kinetik
This commit is contained in:
parent
20d7ad6361
commit
2c49cfe6ca
@ -227,9 +227,10 @@ void nsAudioStream::Drain()
|
||||
return;
|
||||
}
|
||||
|
||||
if (sa_stream_drain(static_cast<sa_stream_t*>(mAudioHandle)) != SA_SUCCESS) {
|
||||
PR_LOG(gAudioStreamLog, PR_LOG_ERROR, ("nsAudioStream: sa_stream_drain error"));
|
||||
Shutdown();
|
||||
int r = sa_stream_drain(static_cast<sa_stream_t*>(mAudioHandle));
|
||||
if (r != SA_SUCCESS && r != SA_ERROR_INVALID) {
|
||||
PR_LOG(gAudioStreamLog, PR_LOG_ERROR, ("nsAudioStream: sa_stream_drain error"));
|
||||
Shutdown();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user