From 045d3cc9b54510d89df91312d7a79ba7263052ae Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sat, 21 Apr 2007 05:27:45 +0000 Subject: mpegplayer: Fix jumping past the frame waiting if Limit FPS is on but Skip Frames is not. Fixes FS#7055 though this was just a general mistake and not limited to the sim. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13227 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/mpegplayer/mpegplayer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/plugins') diff --git a/apps/plugins/mpegplayer/mpegplayer.c b/apps/plugins/mpegplayer/mpegplayer.c index 6bd5abfa45..d4a5c06da6 100644 --- a/apps/plugins/mpegplayer/mpegplayer.c +++ b/apps/plugins/mpegplayer/mpegplayer.c @@ -1436,7 +1436,7 @@ static void video_thread(void) offset = eta_video; eta_video -= offset; - goto picture_draw; + goto picture_wait; } /** Possibly skip this frame **/ @@ -1538,6 +1538,7 @@ static void video_thread(void) skip_level = 1; /* Decoder skip: B */ } + picture_wait: /* Wait until audio catches up */ while (eta_video > eta_audio) { -- cgit v1.2.3