mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-01 08:23:15 +00:00
Avoid deadlock in MPEG-2 cutscenes + slow devices
svn-id: r12996
This commit is contained in:
parent
e40e3dd530
commit
e469cd43a7
@ -307,6 +307,10 @@ bool AnimationState::decodeFrame() {
|
||||
* frames if we run behind and delaying if we are too fast
|
||||
*/
|
||||
|
||||
/* Avoid deadlock is sound was too far ahead */
|
||||
if (bgSoundStream && !bgSound.isActive())
|
||||
return false;
|
||||
|
||||
#ifdef BACKEND_8BIT
|
||||
if (checkPaletteSwitch() || (bgSoundStream == NULL) ||
|
||||
((_snd->getChannelElapsedTime(bgSound) * 12) / 1000 < framenum + 1)) {
|
||||
|
@ -352,6 +352,10 @@ bool AnimationState::decodeFrame() {
|
||||
* frames if we run behind and delaying if we are too fast
|
||||
*/
|
||||
|
||||
/* Avoid deadlock is sound was too far ahead */
|
||||
if (bgSoundStream && !bgSound.isActive())
|
||||
return false;
|
||||
|
||||
#ifdef BACKEND_8BIT
|
||||
if (checkPaletteSwitch() || (bgSoundStream == NULL) ||
|
||||
((_vm->_mixer->getChannelElapsedTime(bgSound) * 12) / 1000 < framenum + 1)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user