[MPlayer-dev-eng] [PATCH] -identify DVD titles
Guillaume POIRIER
poirierg at gmail.com
Tue Sep 20 00:21:41 CEST 2005
Hi,
On 9/20/05, kiriuja <mplayer-patches at en-directo.net> wrote:
> On 9/19/05, Guillaume POIRIER wrote:
[..]
> > + if (DVDDiscID(dvd, discid) >= 0)
> > + mp_msg(MSGT_GLOBAL, MSGL_INFO,
> > "ID_DVD_DISC_ID=%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X\n",
> > + discid[0], discid[1], discid[2], discid[3], discid[4],
> > discid[5], discid[6], discid[7],
> > + discid[8], discid[9], discid[10], discid[11], discid[12],
> > discid[13], discid[14], discid[15]);
> >
> > Good Lord! Isn't there a cleaner way to print the disk ID of the DVD?
>
> Can't think of any shorter or more elegant way to do this in plain C.
> Don't want to call sprintf 17 times.
How about using snprintf to copy just the 15 first chars maybe? I'm
just suggesting...
Guillaume
--
Reading doesn't hurt, really!
-- Dominik 'Rathann' Mierzejewski
More information about the MPlayer-dev-eng
mailing list