[vlc-devel] [PATCH] Add an access-demux which can retrieve raw subtitles

Pierre Ynard linkfanel at yahoo.fr
Tue Mar 23 06:46:28 CET 2010


> Please don't. This belongs in a demux. That mistake was already done
> with the fake access-demux. Not again.

Agreed, that's what I tried to do at first. But the stream layer totally
screws up the particular purpose of this module: reading and displaying
subtitles that are "injected" into the stream in real time. First,
starting the input blocks VLC at pre-buffering stage, since there is
nothing to buffer yet. Since the data is sparse and arriving at a
seemingly random pace, it cannot flow through the buffer nicely, and the
demux only gets out-of-date data. And then it messes up further with
synchronization and pace control.

I'm not sure how this relates to the fake modules, and what's your point
about that. But it looks like accessing unpaced, unbuffered, unframed
data from a demux doesn't quite work with the current access model. Am
I missing something? Is there a better way to do that? If the goal of
this module doesn't fall within the capabilities of the core access
functionalities, then one could argue it's rationale enough for an
access-demux; but even then, can you suggest an acceptable way to split
and/or reuse access code?

Regards,

-- 
Pierre Ynard
"Une âme dans un corps, c'est comme un dessin sur une feuille de papier."



More information about the vlc-devel mailing list