r27497 - trunk/stream/stream_dvd.c
Author: reimar Date: Sat Aug 30 13:21:11 2008 New Revision: 27497 Log: Print DVD volume ID with -identify. Modified: trunk/stream/stream_dvd.c Modified: trunk/stream/stream_dvd.c ============================================================================== --- trunk/stream/stream_dvd.c (original) +++ trunk/stream/stream_dvd.c Sat Aug 30 13:21:11 2008 @@ -860,6 +860,7 @@ static int open_s(stream_t *stream,int m } 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 m 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.
participants (1)
-
reimar