[vlc-devel] [PATCH] Fix block dropping at chapter change for non ordered editions

Denis Charmet typx at dinauz.org
Wed Aug 17 12:41:44 CEST 2011


The release of the block only makes sense if the edition is ordered.
---
 modules/demux/mkv/mkv.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/demux/mkv/mkv.cpp b/modules/demux/mkv/mkv.cpp
index 4eaeee5..ffcab87 100644
--- a/modules/demux/mkv/mkv.cpp
+++ b/modules/demux/mkv/mkv.cpp
@@ -725,7 +725,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;
-- 
1.5.6.5




More information about the vlc-devel mailing list