summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-04-09 14:23:09 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-04-09 14:23:09 +0000
commit486ce516255475e6ed70404bc6a75163344d8e4e (patch)
tree4192e6272d94b9cbc3a8062208e8a3f1cf5b2c40 /stream
parente0b6d5d6c8c553de0b65d60d9d24eb1df97bc2b3 (diff)
downloadmpv-486ce516255475e6ed70404bc6a75163344d8e4e.tar.bz2
mpv-486ce516255475e6ed70404bc6a75163344d8e4e.tar.xz
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
Diffstat (limited to 'stream')
-rw-r--r--stream/stream_dvdnav.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/stream/stream_dvdnav.c b/stream/stream_dvdnav.c
index 85d86713c2..b8b9dcc397 100644
--- a/stream/stream_dvdnav.c
+++ b/stream/stream_dvdnav.c
@@ -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) {