forgot this file

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19380 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2006-11-28 14:57:37 +00:00
parent 0c48fc7c74
commit f9e5811b92

View File

@ -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?