[vlc-devel] MPEG-TS time info - problem with RTP input

Marian Ďurkovič md at bts.sk
Mon Oct 26 16:00:06 CET 2009


On Mon, Oct 26, 2009 at 08:46:24AM +0100, Rémi Denis-Courmont wrote:
> 
> On Mon, 26 Oct 2009 08:34:10 +0100, Marian Ďurkovič <md at bts.sk> wrote:
> > To fix, it's necessary to patch RTP input to pass those two Control()
> > calls down the chain to stream_Demux in case MPEG-TS is being received.
> 
> I considered extending stream_Demux to forward controls. Unfortunately, the
> way stream_Demux works, this is most likely to cause deadlocks, at least if
> the control request needs to return some kind of result. Namely, the
> stream_demux thread could be waiting for data from the input thread
> (callstack: pf_demux -> stream_Read), while the input thread would be
> waiting for control results from the stream_demux thread (callstack:
> pf_control -> stream_DemuxControl)
> => OOPS.

Hmmm, isn't it possible that you suffered this due to identical values
for STREAM_ and DEMUX_ controls doing completely different things?
It wasn't working here as well, until I renumbered the STREAM_ ones:

enum stream_query_e
{
    STREAM_CAN_SEEK = 1000,

  With kind regards,

      M.




More information about the vlc-devel mailing list