[vlc-devel] Pacing of demux_Demux?

Rémi Denis-Courmont rem at videolan.org
Fri Jan 16 18:49:35 CET 2009


It is unclear to me of pacing is supposed to happen in access_demux and demux 
instances. As far as I understand, the pf_demux callback is called from the 
input thread via demux_Demux(). Also, I reckon input slaves are running in 
the same thread as the main (access_)demux.

In addition, all control requests to the pf_control callback via 
demux_Control() or demux_vaControl() also occur in the same thread. Most, if 
not all, demuxers are not re-entrant anyway - pf_control and pf_demux are 
mutually exclusive.

Now, I am getting confused. First, I don't understand how control requests can 
be processed -timely- if the Demux callback is sleeping. Second, I suspect 
slave demuxers are assumed to never sleep, otherwise they'd screw up the main 
demuxer, as well as any would-be other slaves.


Rémi Denis-Courmont

More information about the vlc-devel mailing list