[vlc-devel] [PATCH v2 1/3] Introduce media source and media tree API
remi at remlab.net
Tue Jun 26 19:43:30 CEST 2018
Le mardi 26 juin 2018, 15:15:29 EEST Romain Vimont a écrit :
> Several interfaces (qt, macosx) do the same work:
> - open SDs;
> - listen to SD, and add/remove items on SD events;
> - listen to input (preparsing), and add items on events;
> - close SD.
Err no - they don't. The playlist/SD bindings takes care of that.
The GUI listen to the playlist events, and that's why you need the media tree
if you want to get rid of the playlist. And indeed, you also need a place to
store the list of active SDs (presumably, the media tree does that too).
But that does not explain the need for anything other than media tree still.
And even if there is, or will be, a case for replacing input items or input
nodes, that's going way too far for a single patch series.
The only change that is absolutely required here is to remove the damned
callbacks from input items, since the callbacks will now be on media tree.
More information about the vlc-devel