[vlc-devel] [PATCH] input/stream_demux: pace control

Rémi Denis-Courmont remi at remlab.net
Sat Oct 27 15:51:19 CEST 2012


Le samedi 27 octobre 2012 16:37:31, Frédéric Yhuel a écrit :
> On Sat, Oct 27, 2012 at 2:25 PM, Rémi Denis-Courmont <remi at remlab.net> 
wrote:
> > Le samedi 27 octobre 2012 15:15:22, Frédéric Yhuel a écrit :
> >> On Sat, Oct 27, 2012 at 11:25 AM, Rémi Denis-Courmont <remi at remlab.net>
> > 
> > wrote:
> >> > The stream_demux is paced by its input FIFO, and the FIFO is paced by
> >> > the the parent demux. No thanks.
> >> 
> >> The problem is that it is not easy to pace the parent demux, in my case.
> > 
> > The main demux is naturally paced by the finite bandwidth of the input
> > stream.
> 
> Of course, but if we rely only on the limited bandwidth of the input
> stream, the size of the demux_stream's FIFO could worth several
> seconds, and so could be the size of decoders' FIFO. Then, the stop
> button would not act timely.

Decoders queues cannot grow infinitely long. Stop has always been immediate 
regardless; it simply flushes the queue. And pause/resume have been immediate 
for several years.

I am not sure if the lack of direct congestion control on the stream_Demux 
FIFO is a real problem. But your patch seems to slow down the stream_Demux 
thread. That would make the problem worse rather than better.

-- 
Rémi Denis-Courmont
http://www.remlab.net/



More information about the vlc-devel mailing list