[vlc-devel] [RFC] input & metadata
Laurent Aimar
fenrir at via.ecp.fr
Mon Oct 8 00:26:50 CEST 2007
On Sun, Oct 07, 2007, Rafaël Carré wrote:
> That would rock if we could know when some metadata has become available
> for an input.
>
> The current way is to use "meta-preparsed" variable created & set by the
> input, USING A FLAG SET BY THE PLAYLIST.
>
> If metadata has been read BEFORE being preparsed by the playlist (for
> example if we have a very long playlist) that fails.
>
> I propose to set the *input*'s "meta-preparsed" variable in the demuxers
> after "meta reader" module has been called, or directly in "meta reader"
> modules (i prefer that last one).
I am not sure to understand what you want here ?
If you talk about the rare case when playlist preparsing is done after input
is created but before demux is instancied, then it's not something that will
happen a lot and can be ignored.
If it is about flagging the input as preparsed after a demuxer has read it,
then it is already done (see src/input/input.c: function InputUpdateMeta).
Otherwise I do not understand what you want.
> Fenrir wasn't ok, see
> http://mailman.videolan.org/pipermail/vlc-devel/2007-October/035339.html
> but input is the direct parent of demuxer, so that would not be very
> time consuming, nor difficult to maintain if well documented.
Input is not always the direct parent (for example the access_demux rtsp
instanciate itself an asf demuxer)
Demuxer has been designed to be used without an input parent.
Now if you really need some input feedback to the demuxers, I will add
the API for it, but I do not agree to make p_input availlable easily to
demuxers, it is too easy to screw things up (like it was done in the
previous input API)
--
fenrir
More information about the vlc-devel
mailing list