libdvdcss again

Gildas Bazin gbazin at
Thu Jul 5 14:57:15 CEST 2001

On Thu, 5 Jul 2001 Samuel Hocevar Wrote
>Unfortunately the Unix kernels rely on iov_len to be in bytes, so
>we couldn't use the accelerated readv call and we'd have to use a
>lame readv replacement like in the Win32 version :-)

Yes, but why not do the blocks to bytes convertion of iov_len in _dvdcss_readv just before we call the real unix readv() function.

I'm saying that because we would not rely anymore on the user using a multiple of DVDCSS_BLOCK_SIZE for iov_len.
And we could also make a clear statement that all the libdvdcss api functions manipulate blocks (sectors) and nothing else. Which is really logical because libdvdcss deals only with DVD access.
It's my humble opinion anyway ;-)


NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar...
Une gamme d'outils gratuits et performants à votre service.
Web/Wap :
Téléphone/Fax : 08 92 69 00 21 (0,34 E TTC/min - 2,21 F TTC/min)
Minitel: 3615 NETCOURRIER (0,15 E TTC/min - 1,00 F TTC/min)

More information about the vlc-devel mailing list