]> git.sesse.net Git - vlc/commitdiff
Fix block dropping at chapter change for non ordered editions
authorDenis Charmet <typx@dinauz.org>
Wed, 17 Aug 2011 10:41:44 +0000 (12:41 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 18 Aug 2011 10:47:10 +0000 (12:47 +0200)
The release of the block only makes sense if the edition is ordered.

Acked-by: robux4
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/demux/mkv/mkv.cpp

index ff1c423d046f8e2c9b0d0afa5e3c97801fe74b7d..d1ccfb9c5aee6aebba94dd2341aeb0f9751a5ebf 100644 (file)
@@ -720,7 +720,7 @@ static int Demux( demux_t *p_demux)
 
         if( p_sys->i_pts >= p_sys->i_start_pts  )
         {
-            if ( p_vsegment->UpdateCurrentToChapter( *p_demux ) )
+            if ( p_vsegment->UpdateCurrentToChapter( *p_demux ) && p_vsegment->CurrentEdition() && p_vsegment->CurrentEdition()->b_ordered )
             {
                 i_return = 1;
                 delete block;