summaryrefslogtreecommitdiffstats
path: root/stream/stream_dvd.c
diff options
context:
space:
mode:
authornicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-03-04 08:49:24 +0000
committernicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-03-04 08:49:24 +0000
commit8e2bc40df5001ccef88f1b5b756d33fbc2fcab46 (patch)
tree2cad2bd222f32ae23978afe3c5ef01f89be3da2c /stream/stream_dvd.c
parenteeec36107df98a6a4204faef31f42a45ef0875a9 (diff)
downloadmpv-8e2bc40df5001ccef88f1b5b756d33fbc2fcab46.tar.bz2
mpv-8e2bc40df5001ccef88f1b5b756d33fbc2fcab46.tar.xz
print the disc_id without using a buffer
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22430 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/stream_dvd.c')
-rw-r--r--stream/stream_dvd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/stream/stream_dvd.c b/stream/stream_dvd.c
index 1541f46c14..fdb960e6eb 100644
--- a/stream/stream_dvd.c
+++ b/stream/stream_dvd.c
@@ -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");
}
}
/**