[vlc-devel] [PATCH] add in ability to read from any part of a file descriptor.
remi at remlab.net
Tue Jan 5 17:05:47 CET 2016
Le 2016-01-05 16:35, Kevin Whitaker a écrit :
> Incoming from the android mailing list, this patch is intended to
> allow vlc to play from any point in a file descriptor.
> This is important on android because android assets are only
> accessible by inputstream or by way of a file descriptor that
> represents all the assets squished together. The Android asset
> gives a file descriptor, offset, and length that allows programs to
> find the right asset. I've tested this and have gotten it to play
> videos that were stored as assets, but this is my first time working
> in the vlc codebase, so let me know if everything is fine.
I think adding two new options, e.g. file-offset and file-length, would
be a lot simpler and cleaner. It also ensures that playlist files cannot
(ab)use the feature.
Then again, you might prefer to use custom Libvlc I/O callbacks and
leave the VLC code base alone.
More information about the vlc-devel