[vlc-devel] [PATCH] [RFC] apply the same flush on the sout than on aout/vout

Steve Lhomme robux4 at gmail.com
Tue Nov 17 20:48:55 CET 2015


On Tue, Nov 17, 2015 at 4:51 PM, Rémi Denis-Courmont <remi at remlab.net> wrote:
> Le 2015-11-13 10:55, Steve Lhomme a écrit :
>>
>> And since this
>> was working by chance before (and not always), I suggest we take an
>> approach that works well with the Chromecast.
>
>
> In general, there are two approaches:
>
> 1) Keep things as are, even if incorrect, and preferably document the gap to
> the correct solution.
> 2) Make things correct.
>
> In this case, I believe that we currently pass preroll blocks to the stream
> out, and that this is correct. So then it is a no brainer that we should
> keep it that way.
>
> Mind you, not me (much), but some people actually use VLC stream output. Not
> for Chromecast.

In the end the current code should work. We tell the Chromecast to
seek (and thus flush its data) and we send the data afterwards, even
the preroll. It seems to work well. The preroll gets negative
timestamps compared to previously sent data. It's odd but it can deal
with it. At this point I get no visual distortion when seeking. I
can't tell for sure though that's it's starting the playback on the
preroll or on the actual seek point.

>
> --
> Rémi Denis-Courmont
> http://www.remlab.net/
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list