mirror of
https://github.com/mpv-player/mpv
synced 2025-01-20 21:07:29 +01:00
Print DVD volume ID with -identify.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27497 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
c152b07e66
commit
fd75ca0c6a
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user