[vlc-devel] [PATCH 1/2] input: add DEMUX_SET_ES notification

Francois Cartegnie fcvlcdev at free.fr
Sat Dec 7 14:42:52 CET 2013


Le 06/12/2013 17:35, Rémi Denis-Courmont a écrit :
>> I don't really see how to do this as I can't find any association
>> between ID and es_out_Add callers.
> 
> I don't know how to do it (I have not checked the code). But something needs 
> to be done. We cannot just pass a random ID to an unsuspecting demuxer.

DEMUX_SET_GROUP currently ignores that kind of check.
I guess the extra input slaves have been added later.

I don't think modifying the es_out_Add and holding a ref to the input
source is feasible (and input_source_t is also for core use only).

Alternatives:
- The demux can just ignore unknown ids.
- Register for callbacks on all or some ES.

Francois



More information about the vlc-devel mailing list