# HG changeset patch # User nicodvb # Date 1196378714 0 # Node ID a43d99a80f4ab610274ba6e93cf2ec85ee4b368b # Parent 6d9212e61af8c6e1dd849834b21b8c61805d7f3c -identify also shows the duration(s) of the title(s) diff -r 6d9212e61af8 -r a43d99a80f4a stream/stream_dvdnav.c --- a/stream/stream_dvdnav.c Thu Nov 29 23:01:46 2007 +0000 +++ b/stream/stream_dvdnav.c Thu Nov 29 23:25:14 2007 +0000 @@ -350,10 +350,12 @@ static void identify_chapters(dvdnav_t *nav, uint32_t title) { - uint64_t *parts=NULL; + uint64_t *parts=NULL, duration=0; uint32_t n, i, t; - n = dvdnav_describe_title_chapters(nav, title, &parts); + n = dvdnav_describe_title_chapters(nav, title, &parts, &duration); if(parts) { + t = duration / 90; + mp_msg(MSGT_IDENTIFY, MSGL_V, "ID_DVD_TITLE_%d_LENGTH=%d.%03d\n", title, t / 1000, t % 1000); mp_msg(MSGT_IDENTIFY, MSGL_INFO, "TITLE %u, CHAPTERS: ", title); for(i=0; i