From aa50dd61e9e698e4106ac0d0ad49cf05ec9b5e19 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Tue, 14 Jul 2009 16:45:18 +0000 Subject: Got rid of ioFailed(). I haven't actually tested it, but we don't use the MPEG decoder at the moment, and it was only used in the BACKEND_8BIT case anyway. svn-id: r42484 --- graphics/video/mpeg_player.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/graphics/video/mpeg_player.cpp b/graphics/video/mpeg_player.cpp index 1910babce4..5b7b3eb607 100644 --- a/graphics/video/mpeg_player.cpp +++ b/graphics/video/mpeg_player.cpp @@ -86,13 +86,10 @@ bool BaseAnimationState::init(const char *name) { } p = 0; - while (1) { + while (!f.eos()) { _palettes[p].end = f.readUint16LE(); _palettes[p].cnt = f.readUint16LE(); - if (f.ioFailed()) - break; - for (i = 0; i < _palettes[p].cnt; i++) { _palettes[p].pal[4 * i] = f.readByte(); _palettes[p].pal[4 * i + 1] = f.readByte(); -- cgit v1.2.3