From f9e5811b92c80c6a9fbe557459d087728121191d Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Tue, 28 Nov 2006 14:57:37 +0000 Subject: [PATCH] forgot this file git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19380 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/PicturePlayer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kits/interface/PicturePlayer.cpp b/src/kits/interface/PicturePlayer.cpp index 934e407640..4ded1b4ea9 100644 --- a/src/kits/interface/PicturePlayer.cpp +++ b/src/kits/interface/PicturePlayer.cpp @@ -537,7 +537,8 @@ PicturePlayer::Play(void **callBackTable, int32 tableEntries, void *userData) // If we didn't read enough bytes, skip them. This is not a error // since the instructions can change over time. - if (/*op != B_PIC_ENTER_STATE_CHANGE && op != B_PIC_ENTER_FONT_STATE && */fData.Position() - pos < size) + // Don't do that for state change ops, they don't have a fixed size + if (op != B_PIC_ENTER_STATE_CHANGE && op != B_PIC_ENTER_FONT_STATE && fData.Position() - pos < size) fData.Seek(size - (fData.Position() - pos), SEEK_CUR); // TODO: what if too much was read, should we return B_ERROR?