mirror of https://github.com/mpv-player/mpv
simplified code to handle titleset transition (removed useless assignment)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20423 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
38857d2927
commit
8c1284a537
|
@ -214,11 +214,10 @@ static int fill_buffer(stream_t *s, char *but, int len)
|
||||||
case DVDNAV_BLOCK_OK: return len;
|
case DVDNAV_BLOCK_OK: return len;
|
||||||
case DVDNAV_VTS_CHANGE: {
|
case DVDNAV_VTS_CHANGE: {
|
||||||
int tit = 0, part = 0;
|
int tit = 0, part = 0;
|
||||||
dvdnav_vts_change_event_t *evt = (dvdnav_vts_change_event_t*)but;
|
|
||||||
s->end_pos = 0;
|
s->end_pos = 0;
|
||||||
update_title_len(s);
|
update_title_len(s);
|
||||||
if(dvdnav_current_title_info(dvdnav_priv->dvdnav, &tit, &part) == DVDNAV_STATUS_OK) {
|
if(dvdnav_current_title_info(dvdnav_priv->dvdnav, &tit, &part) == DVDNAV_STATUS_OK) {
|
||||||
mp_msg(MSGT_CPLAYER,MSGL_V, "\r\nDVDNAV, NEW VTS event: VTS %d, title %d\r\n", evt->new_vtsN, tit);
|
mp_msg(MSGT_CPLAYER,MSGL_V, "\r\nDVDNAV, NEW TITLE %d\r\n", tit);
|
||||||
if(dvdnav_priv->title > 0 && tit != dvdnav_priv->title)
|
if(dvdnav_priv->title > 0 && tit != dvdnav_priv->title)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue