[vlc-devel] [RFC PATCH 1/2] dvdnav: Notify of title changes when dvdnav notifies us
Hugo Beauzée-Luyssen
hugo at beauzee.fr
Thu Jul 18 17:57:23 CEST 2019
Otherwise the title is not "ready" and we can't seek in it until a few
more blocks are demuxed
---
modules/access/dvdnav.c | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/modules/access/dvdnav.c b/modules/access/dvdnav.c
index 9a38df3151..f80fabd89c 100644
--- a/modules/access/dvdnav.c
+++ b/modules/access/dvdnav.c
@@ -612,10 +612,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
return VLC_EGENERIC;
}
}
-
- p_sys->updates |= INPUT_UPDATE_TITLE | INPUT_UPDATE_SEEKPOINT;
- p_sys->cur_title = i;
- p_sys->cur_seekpoint = 0;
return VLC_SUCCESS;
case DEMUX_SET_SEEKPOINT:
@@ -959,17 +955,6 @@ static int Demux( demux_t *p_demux )
p_sys->sar.i_den = 0;
break;
}
-
- if( dvdnav_current_title_info( p_sys->dvdnav, &i_title,
- &i_part ) == DVDNAV_STATUS_OK )
- {
- if( i_title >= 0 && i_title < p_sys->i_title &&
- p_sys->cur_title != i_title )
- {
- p_sys->updates |= INPUT_UPDATE_TITLE;
- p_sys->cur_title = i_title;
- }
- }
break;
}
--
2.20.1
More information about the vlc-devel
mailing list