1
mirror of https://github.com/mpv-player/mpv synced 2025-01-16 22:37:28 +01:00

print the disc_id without using a buffer

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22430 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nicodvb 2007-03-04 08:49:24 +00:00
parent eeec36107d
commit 8e2bc40df5

View File

@ -867,10 +867,10 @@ static int open_s(stream_t *stream,int mode, void* opts, int* file_format) {
if (DVDDiscID(dvd, discid) >= 0)
{
int i;
char buf[33];
mp_msg(MSGT_IDENTIFY, MSGL_V, "ID_DVD_DISC_ID=");
for (i = 0; i < 16; i ++)
sprintf(buf+2*i, "%02X", discid[i]);
mp_msg(MSGT_IDENTIFY, MSGL_V, "ID_DVD_DISC_ID=%s\n", buf);
mp_msg(MSGT_IDENTIFY, MSGL_V, "%02X", discid[i]);
mp_msg(MSGT_IDENTIFY, MSGL_V, "\n");
}
}
/**