[vlc-devel] Sending synced text to the Qt4 interface

Laurent Aimar fenrir at via.ecp.fr
Mon Nov 3 16:00:34 CET 2008


On Mon, Nov 03, 2008, ogg.k.ogg.k at googlemail.com wrote:
> Does anybody know of a way I can tell if asking for a SPU buffer is going to
> cause such a pause ?
 No you cannot in the current implementation, and throwing away subtitles because
it will block is not the right solution anyway.

> I'm not sure why blocking the decoder would risk losing subtitles actually.
> If they're timed along with the video, then they'd only be lost if the video
> playback time was past already, so this means we'd have lost part of the
> video too (since they'd be showing/hiding at a fixed video frame, regardless
> of whether the video appears late). I'm just trying to understand how this
> enforced delay works so I can think of how best to avoid my problem.
 The subtitle decoder can be created and started a long time before it is
time to display the first subtitle and the associated video picture (so not
yet late).

-- 
fenrir



More information about the vlc-devel mailing list