Commit 05c419f6 authored by Denis Charmet's avatar Denis Charmet Committed by Jean-Baptiste Kempf

Fix block dropping at chapter change for non ordered editions

The release of the block only makes sense if the edition is ordered.

Acked-by: robux4
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 6d0aeeec
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment