mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1079174 - allow video playback when AudioStream init fails. r=kinetik
This commit is contained in:
parent
d76fc7d1e4
commit
a922e490b4
@ -3143,7 +3143,13 @@ void MediaDecoderStateMachine::OnAudioSinkError()
|
||||
|
||||
mAudioCompleted = true;
|
||||
|
||||
// Notify media decoder/element about this error.
|
||||
// Make the best effort to continue playback when there is video.
|
||||
if (HasVideo()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Otherwise notify media decoder/element about this error for it makes
|
||||
// no sense to play an audio-only file without sound output.
|
||||
RefPtr<nsIRunnable> task(
|
||||
NS_NewRunnableMethod(this, &MediaDecoderStateMachine::OnDecodeError));
|
||||
nsresult rv = mDecodeTaskQueue->Dispatch(task);
|
||||
|
Loading…
Reference in New Issue
Block a user