summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-08-30 11:21:11 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-08-30 11:21:11 +0000
commitfd75ca0c6a041d4ee820f25b777b3649a191e71e (patch)
tree145c05732ae6fe52c3f0f69873ec6df278941336 /stream
parentc152b07e661cbc274cd4979e6b5e053a64656476 (diff)
downloadmpv-fd75ca0c6a041d4ee820f25b777b3649a191e71e.tar.bz2
mpv-fd75ca0c6a041d4ee820f25b777b3649a191e71e.tar.xz
Print DVD volume ID with -identify.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27497 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream')
-rw-r--r--stream/stream_dvd.c3
1 files changed, 3 insertions, 0 deletions
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.