From 3ac662ab0c988532d2c1c8fb64c3e20117a6ffdb Mon Sep 17 00:00:00 2001 From: Manfred Tremmel Date: Sat, 13 Mar 2004 11:02:09 +0000 Subject: disabled seeking for IFF-ILBM and IFF-ANIM the same way like demux_vqa.c dose CVS patchset: 6245 CVS date: 2004/03/13 11:02:09 --- src/demuxers/demux_iff.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/demuxers/demux_iff.c b/src/demuxers/demux_iff.c index cd6a6e4d3..8f43be949 100644 --- a/src/demuxers/demux_iff.c +++ b/src/demuxers/demux_iff.c @@ -34,9 +34,9 @@ * * ILBM (Bitmap Picturs) * - simple pictures work, nothing more (most work is done in bitmap-decoder) * * ANIM (Animations) - * - Animation can displayed, but has to be improved + * - Animation works fine, without seeking. * - * $Id: demux_iff.c,v 1.8 2004/02/25 18:57:35 manfredtremmel Exp $ + * $Id: demux_iff.c,v 1.9 2004/03/13 11:02:09 manfredtremmel Exp $ */ #ifdef HAVE_CONFIG_H @@ -992,7 +992,7 @@ static int demux_iff_send_chunk(demux_plugin_t *this_gen) { this->status = DEMUX_OK; else this->status = DEMUX_FINISHED; - + return this->status; } @@ -1097,6 +1097,11 @@ static int demux_iff_seek (demux_plugin_t *this_gen, this->data_size : start_pos); case IFF_ILBM_CHUNK: case IFF_ANIM_CHUNK: + /* disable seeking for ILBM and ANIM */ + this->seek_flag = 0; + if( !playing ) { + this->status = DEMUX_OK; + } break; default: break; @@ -1149,17 +1154,17 @@ static void demux_iff_dispose (demux_plugin_t *this_gen) { free( this->rlse ); this->rlse = NULL; } - + if( this->anhd ) { free( this->anhd ); this->anhd = NULL; } - + if( this->dpan ) { free( this->dpan ); this->dpan = NULL; } - + if( this->title ) { free (this->title); this->title = NULL; -- cgit v1.2.3