diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2002-07-30 20:13:09 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2002-07-30 20:13:09 +0000 |
commit | 46430bb9bbbe5ffc91e036a2768558529508466b (patch) | |
tree | 8d0e45a88758272ba02dcde20a47e7f72a36c62a | |
parent | 56824383544368d3a2d5eeabe0f18d79074cea02 (diff) | |
download | xine-lib-46430bb9bbbe5ffc91e036a2768558529508466b.tar.gz xine-lib-46430bb9bbbe5ffc91e036a2768558529508466b.tar.bz2 |
should fix Heiko's problem playing several avis in a row
CVS patchset: 2369
CVS date: 2002/07/30 20:13:09
-rw-r--r-- | src/libffmpeg/xine_decoder.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/libffmpeg/xine_decoder.c b/src/libffmpeg/xine_decoder.c index 00445dcf8..89c446231 100644 --- a/src/libffmpeg/xine_decoder.c +++ b/src/libffmpeg/xine_decoder.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine_decoder.c,v 1.49 2002/07/15 21:42:33 esnel Exp $ + * $Id: xine_decoder.c,v 1.50 2002/07/30 20:13:09 miguelfreitas Exp $ * * xine decoder plugin using ffmpeg * @@ -194,6 +194,7 @@ static void ff_decode_data (video_decoder_t *this_gen, buf_element_t *buf) { this->buf = malloc( VIDEOBUFSIZE ); this->bufsize = VIDEOBUFSIZE; + this->size = 0; this->skipframes = 0; @@ -354,7 +355,10 @@ static void ff_flush (video_decoder_t *this_gen) { } static void ff_reset (video_decoder_t *this_gen) { - /* seems to handle seeking quite nicelly without any code here */ + ff_decoder_t *this = (ff_decoder_t *) this_gen; + + /* invalidate buffer on seek */ + this->size = 0; } static void ff_close (video_decoder_t *this_gen) { |