mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user