]> git.sesse.net Git - vlc/commitdiff
Fixed a reinit bug after a discontinuity - such as seek().
authorChristophe Massiot <massiot@videolan.org>
Wed, 25 Jul 2001 15:37:34 +0000 (15:37 +0000)
committerChristophe Massiot <massiot@videolan.org>
Wed, 25 Jul 2001 15:37:34 +0000 (15:37 +0000)
src/video_decoder/vpar_headers.c

index 2430af885f26c0ca64d0eb82ad21a4d2037702d0..51fda263a7d5ec59706b1b8a3e98c6edc2ffbbb0 100644 (file)
@@ -2,7 +2,7 @@
  * vpar_headers.c : headers parsing
  *****************************************************************************
  * Copyright (C) 1999, 2000 VideoLAN
- * $Id: vpar_headers.c,v 1.3 2001/07/18 14:21:00 massiot Exp $
+ * $Id: vpar_headers.c,v 1.4 2001/07/25 15:37:34 massiot Exp $
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
  *          Stéphane Borel <stef@via.ecp.fr>
@@ -506,7 +506,9 @@ static void PictureHeader( vpar_thread_t * p_vpar )
         if( p_vpar->picture.p_picture != NULL )
         {
             vout_DestroyPicture( p_vpar->p_vout, p_vpar->picture.p_picture );
+            p_vpar->picture.p_picture = NULL;
         }
+        p_vpar->picture.i_current_structure = 0;
         p_vpar->sequence.b_expect_discontinuity = 0;
     }