[MPlayer-cvslog] r22430 - trunk/stream/stream_dvd.c

nicodvb subversion at mplayerhq.hu
Sun Mar 4 09:49:24 CET 2007


Author: nicodvb
Date: Sun Mar  4 09:49:24 2007
New Revision: 22430

Modified:
   trunk/stream/stream_dvd.c

Log:
print the disc_id without using a buffer

Modified: trunk/stream/stream_dvd.c
==============================================================================
--- trunk/stream/stream_dvd.c	(original)
+++ trunk/stream/stream_dvd.c	Sun Mar  4 09:49:24 2007
@@ -867,10 +867,10 @@ static int open_s(stream_t *stream,int m
       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");
       }
     }
     /**



More information about the MPlayer-cvslog mailing list