Mercurial > mplayer.hg
changeset 27465:b3bfe83d77f9
Print DVD volume ID with -identify.
author | reimar |
---|---|
date | Sat, 30 Aug 2008 11:21:11 +0000 |
parents | be85aae103f2 |
children | ea01824701a5 |
files | stream/stream_dvd.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/stream/stream_dvd.c Fri Aug 29 22:55:39 2008 +0000 +++ b/stream/stream_dvd.c Sat Aug 30 11:21:11 2008 +0000 @@ -860,6 +860,7 @@ } 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 @@ 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.