[MPlayer-dev-eng] [PATCH] print DVD volume ID with -identify
Reimar Döffinger
Reimar.Doeffinger at stud.uni-karlsruhe.de
Sat Aug 30 09:41:10 CEST 2008
Hello,
attached patch adds a ID_DVD_VOLUME_ID message, there was a question
about this on -users.
It might even make sense to print the information without -identify, but
that is trivial to add later.
Greetings,
Reimar Döffinger
-------------- next part --------------
Index: stream/stream_dvd.c
===================================================================
--- stream/stream_dvd.c (revision 27489)
+++ stream/stream_dvd.c (working copy)
@@ -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.
More information about the MPlayer-dev-eng
mailing list