[vlc-devel] [PATCH 1/2] stream: add stream_DemuxAlive

Rémi Denis-Courmont remi at remlab.net
Mon Apr 20 17:16:56 CEST 2015


Le lundi 20 avril 2015, 17:06:44 Julian Scheel a écrit :
> Agreed, but in this case I see two options only:
> (a) The outer demux will timeout at some point if no further data comes
> in and thus shutdown as well

Not really. Some access modules may never reach a timeout when there is no 
data, or take arbitrarily long to do so. UDP and TCP are obvious examples.

> (b) It will receive further data so it's unblocking, seeing the inner
> demux was finalized and can shutdown then as well
> 
> Any other blocking operation which could occur doesn't seem to be
> related to the inner demux being alive or not afaics. And would be
> equally harmful with or without this patch, wouldn't it.

It would. A normal demuxer cannot both be reaching the end of the file as 
defined by the file format, and reading data at the exact same time. This 
problem does not exist for a normal (non-chained) demuxer.

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




More information about the vlc-devel mailing list