forgot this file
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19380 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
0c48fc7c74
commit
f9e5811b92
@ -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
|
// If we didn't read enough bytes, skip them. This is not a error
|
||||||
// since the instructions can change over time.
|
// 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);
|
fData.Seek(size - (fData.Position() - pos), SEEK_CUR);
|
||||||
|
|
||||||
// TODO: what if too much was read, should we return B_ERROR?
|
// TODO: what if too much was read, should we return B_ERROR?
|
||||||
|
Loading…
Reference in New Issue
Block a user