[vlc-devel] [PATCH 00/10] Item browsing system

Rémi Denis-Courmont remi at remlab.net
Mon May 26 13:13:54 CEST 2014


Le 2014-05-26 18:53, Julien 'Lta' BALLET a écrit :
> I do not assume directories are serializable. The browse module
> receive a stream_t when you are trying to access an API over http, 
> but
> not when you a trying to browse a folder.

But that's exactly the problem. How do you pass the file descriptor 
from the access to the whatever-browser after (only after) fstat() tells 
you it is a directory? This is not serializable, so it cannot be passed 
via the input_item_t.

Not to mention the hypothetical thread running inotify to detect 
asynchronous changes to the directory content. That also needs some life 
cycle management and can obviously not be serialized.

> In that case, the module has
> to assume the access role (access_browser, much like access_demux).
> The access_browse is likely to be part of the same .so that the
> regular access

Using the same shared object solves sharing code, not sharing state.

-- 
Rémi Denis-Courmont



More information about the vlc-devel mailing list