Add a -indentify message that indicates if the current DVDNAV title is

a menu or a video.
Patch by Kevin DeKorte [kdekorte gmail com], approved by Nico.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29156 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar
2009-04-09 14:23:09 +00:00
parent e0b6d5d6c8
commit 486ce51625

View File

@@ -205,10 +205,13 @@ static int dvdnav_stream_read(dvdnav_priv_t * priv, unsigned char *buf, int *len
if(ev->pgc_length)
priv->duration = ev->pgc_length/90;
if (dvdnav_is_domain_vts(priv->dvdnav))
if (dvdnav_is_domain_vts(priv->dvdnav)) {
mp_msg(MSGT_IDENTIFY, MSGL_INFO, "DVDNAV_TITLE_IS_MOVIE\n");
priv->state &= ~NAV_FLAG_VTS_DOMAIN;
else
} else {
mp_msg(MSGT_IDENTIFY, MSGL_INFO, "DVDNAV_TITLE_IS_MENU\n");
priv->state |= NAV_FLAG_VTS_DOMAIN;
}
nextstill = dvdnav_get_next_still_flag (priv->dvdnav);
if (nextstill) {