[vlc-devel] [PATCH] Handling prefered language in AsfSelectStream Better, bitrate sort and select algo Tested with asf containing 3, Videos and 24 Lang...

Rémi Denis-Courmont remi at remlab.net
Thu Jul 18 11:08:14 CEST 2013


On Thu, 18 Jul 2013 10:11:56 +0200, Denis Charmet <typx at dinauz.org> wrote:
> Hi,
> 
> Le jeudi 18 juillet 2013 à 08:51:51, Rémi Denis-Courmont a écrit :
>> On Thu, 18 Jul 2013 02:28:00 +0200, Denis Charmet <typx at dinauz.org>
>> wrote:
>> > Imho, stream selection is the responsibility of the core and the
user,
>> > That's why I think that your use case needs a core evolution instead
of
>> a
>> > workaround. I'll try to think of a longer-lasting solution.
>> 
>> What's wrong with the existing DEMUX_SET_GROUP or ES_OUT_GET_ES_STATE?
If
>> you really do not like to poll ES_OUT_GET_ES_STATE from pf_demux, then
it
>> might be posible to add a DEMUX_SET_ES_STATE, but I am not sure about
the
>> threading implications...
>> 
> 
> There's nothing wrong with that (except the ugly poll imo)

DEMUX_SET_GROUP does not require polling.

> but wouldn't that imply to make an access demux?

I don't understand the question. MPEG-TS is not an access-demux, or is it?

The input thread and the ES output have no knowledge of the internals of
the bit stream. The mapping the bit stream to elementary streams and groups
is the responsibility of the demuxer. So obviously, the reverse mapping is
also the demuxer's job.

-- 
Rémi Denis-Courmont
Sent from my collocated server



More information about the vlc-devel mailing list