From fd75ca0c6a041d4ee820f25b777b3649a191e71e Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 30 Aug 2008 11:21:11 +0000 Subject: Print DVD volume ID with -identify. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27497 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/stream_dvd.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'stream/stream_dvd.c') diff --git a/stream/stream_dvd.c b/stream/stream_dvd.c index f97a2ff5c8..85bb485c4f 100644 --- a/stream/stream_dvd.c +++ b/stream/stream_dvd.c @@ -860,6 +860,7 @@ static int open_s(stream_t *stream,int mode, void* opts, int* file_format) { } if (mp_msg_test(MSGT_IDENTIFY, MSGL_V)) { + char volid[32]; unsigned char discid [16]; ///< disk ID, a 128 bit MD5 sum int vts_no; ///< video title set number for (vts_no = 1; vts_no <= vmg_file->vts_atrt->nr_of_vtss; vts_no++) @@ -872,6 +873,8 @@ static int open_s(stream_t *stream,int mode, void* opts, int* file_format) { mp_msg(MSGT_IDENTIFY, MSGL_V, "%02X", discid[i]); mp_msg(MSGT_IDENTIFY, MSGL_V, "\n"); } + if (DVDUDFVolumeInfo(dvd, volid, sizeof(volid), NULL, 0) >= 0) + mp_msg(MSGT_IDENTIFY, MSGL_V, "ID_DVD_VOLUME_ID=%s\n", volid); } /** * Make sure our title number is valid. -- cgit v1.2.3