Reverting my windows build fix because it breaks the bug fix committed in r40995
[blender.git] / source / blender / editors / screen / screen_ops.c
index 8d9190ac80c21ad11acb2383cf3db4456bcd1886..a2be1e8fa6f46479103ec2e5ca40259a43a80083 100644 (file)
@@ -2814,7 +2814,7 @@ static int screen_animation_step(bContext *C, wmOperator *UNUSED(op), wmEvent *e
                else if (sad->flag & ANIMPLAY_FLAG_NO_SYNC) sync= 0;
                else sync= (scene->flag & SCE_FRAME_DROP);
                
-               if((scene->audio.flag & AUDIO_SYNC) && !(sad->flag & ANIMPLAY_FLAG_REVERSE) && ((time = sound_sync_scene(scene)) != SOUND_ERR_FLT))
+               if((scene->audio.flag & AUDIO_SYNC) && !(sad->flag & ANIMPLAY_FLAG_REVERSE) && finite(time = sound_sync_scene(scene)))
                        scene->r.cfra = (double)time * FPS + 0.5;
                else
                {