[vlc-devel] [RFC PATCH 0/2] Expose the preparsed item type

Hugo Beauzée-Luyssen hugo at beauzee.fr
Mon Sep 14 12:16:10 CEST 2020


On Thu, Sep 10, 2020, at 9:27 PM, Rémi Denis-Courmont wrote:
> Le torstaina 10. syyskuuta 2020, 16.17.57 EEST Hugo Beauzée-Luyssen a écrit :
> > This is a small RFC of a change allowing the preparser (or the input in
> > general) to know what the actual input type is, regardless of its MRL.
> 
> AFAICT, the real problem is DVD and BD accesses "hijacking" the file scheme.
> 
> This particularly affects preparsing performance, but it is in no ways specific 
> thereto. I don't know how the media library is affected as you didn't explain 
> what the actual problem was, and thus that does not seem like a good approach.

The idea is to reflect the actual file type, for now when preparsing a dvd or bluray, the result is as ITEM_TYPE_FILE with no subitems, while returning ITEM_TYPE_DISC would be a more valuable information IMO.
The same goes for playlists, for now the type is ITEM_TYPE_FILE, and we can try to guess if that's a playlist based on the file extension, but then there's no way of differentiate a playlist with no elements from a regular file.

-- 
  Hugo Beauzée-Luyssen
  hugo at beauzee.fr


More information about the vlc-devel mailing list