Commit 894f53f2 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

DVDnav: correctly update the title

Close #6013
parent a410f1a0
...@@ -813,12 +813,17 @@ static int Demux( demux_t *p_demux ) ...@@ -813,12 +813,17 @@ static int Demux( demux_t *p_demux )
if( dvdnav_current_title_info( p_sys->dvdnav, &i_title, if( dvdnav_current_title_info( p_sys->dvdnav, &i_title,
&i_part ) == DVDNAV_STATUS_OK ) &i_part ) == DVDNAV_STATUS_OK )
{ {
if( i_title >= 0 && i_title < p_sys->i_title && if( i_title >= 0 && i_title < p_sys->i_title )
i_part >= 1 && i_part <= p_sys->title[i_title]->i_seekpoint &&
p_demux->info.i_seekpoint != i_part - 1 )
{ {
p_demux->info.i_update |= INPUT_UPDATE_SEEKPOINT; p_demux->info.i_update |= INPUT_UPDATE_TITLE;
p_demux->info.i_seekpoint = i_part - 1; p_demux->info.i_title = i_title;
if( i_part >= 1 && i_part <= p_sys->title[i_title]->i_seekpoint &&
p_demux->info.i_seekpoint != i_part - 1 )
{
p_demux->info.i_update |= INPUT_UPDATE_SEEKPOINT;
p_demux->info.i_seekpoint = i_part - 1;
}
} }
} }
break; break;
......
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