Michael Roitzsch
2002-06-06 16:06:30 UTC
Hi there,
I am using your libdvdcss together with the xine video player to watch
encrypted dvds. I was glad to see that the newer libdvdcss-releases
support raw devices. But there is one problem with this support: The
reading from the raw device will fail if the buffer that is handed in
is not aligned in memory at a multiple of 2048. (This is a restriction
by the raw reading itself because the DMA controller needs aligned
chunks to write directly to the applications memory.)
This renders raw device support unusable for me. Xine's buffers are of
course properly aligned, but the ones libdvdread uses during its
internal reading are not.
I have attached a patch that fixes this problem by falling back to the
non-raw device for unaligned buffers.
Michael Roitzsch
I am using your libdvdcss together with the xine video player to watch
encrypted dvds. I was glad to see that the newer libdvdcss-releases
support raw devices. But there is one problem with this support: The
reading from the raw device will fail if the buffer that is handed in
is not aligned in memory at a multiple of 2048. (This is a restriction
by the raw reading itself because the DMA controller needs aligned
chunks to write directly to the applications memory.)
This renders raw device support unusable for me. Xine's buffers are of
course properly aligned, but the ones libdvdread uses during its
internal reading are not.
I have attached a patch that fixes this problem by falling back to the
non-raw device for unaligned buffers.
Michael Roitzsch