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

Julian Scheel julian at jusst.de
Mon Apr 20 14:33:46 CEST 2015


On 20.04.2015 14:23, Rémi Denis-Courmont wrote:
> Le 2015-04-20 15:16, Julian Scheel a écrit :
>> So a stream_Demux is not allowed to fail at any time?
>
> As far as I understand the code, that would cause an unbounded memory
> use. So no.

Yes, this is what happens now. A demux is chained via stream_Demux. The 
demux does implement the demux interface as any other demux and returns 
0 (VLC_DEMUXER_EOF) from pf_demux() because it ran into an eof condition 
- but this eof is in fact a stream eof not a transport eof. The same 
transport may send another stream without interruption now.

This will cause the access_demux to eat all system memory. Shouldn't we 
have a way out there?

-Julian




More information about the vlc-devel mailing list