diff options
author | Manfred Tremmel <manfredtremmel@users.sourceforge.net> | 2004-03-13 11:02:09 +0000 |
---|---|---|
committer | Manfred Tremmel <manfredtremmel@users.sourceforge.net> | 2004-03-13 11:02:09 +0000 |
commit | 3ac662ab0c988532d2c1c8fb64c3e20117a6ffdb (patch) | |
tree | 1f0c287244112897ebd7863dd780662270c8308b /src | |
parent | ec6cb1e218af514e070afe4007d11e3c7a9889ab (diff) | |
download | xine-lib-3ac662ab0c988532d2c1c8fb64c3e20117a6ffdb.tar.gz xine-lib-3ac662ab0c988532d2c1c8fb64c3e20117a6ffdb.tar.bz2 |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/demuxers/demux_iff.c | 17 |
1 files changed, 11 insertions, 6 deletions
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; |