From 7afe2e86931313653d4dedb6d5167c79c2822aba Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Mon, 16 Apr 2007 04:14:58 +0000 Subject: Oops. Have to do dropping based on future frame type but based upon the current one's lateness otherwise nice screen garbage can result from dropping/drawing the wrong ones. A small amount of refinement will be needed here later. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13176 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/mpegplayer/mpegplayer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/plugins/mpegplayer/mpegplayer.c b/apps/plugins/mpegplayer/mpegplayer.c index b4b3281225..52d33673f4 100644 --- a/apps/plugins/mpegplayer/mpegplayer.c +++ b/apps/plugins/mpegplayer/mpegplayer.c @@ -1452,7 +1452,7 @@ static void video_thread(void) if (frame_drop_level > 1 || offset > CLOCK_RATE*167/1000) { /* Frame type: I/P/B/D */ - int type = info->display_picture->flags & PIC_MASK_CODING_TYPE; + int type = info->current_picture->flags & PIC_MASK_CODING_TYPE; /* Things are running a bit late or all frames are being dropped until a key frame */ -- cgit v1.2.3