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

Denis Charmet typx at dinauz.org
Thu Jul 18 10:11:56 CEST 2013


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) but wouldn't that
imply to make an access demux?

Well I assume it may be possible to do that from the asf demux but this
means that the demux knows about all the tracks even the one that it
doesn't actually recieves, I don't know the protocol

> As for MMS, keep in mind that the input thread cannot call the access
> instance directly. In particular, the access is not reentrant and it might
> run in another thread due to stream filters. Besides, track identifier are
> format-specific. So I think format-specific controls are unavoidable. For
> MPEG-TS, there is ACCESS_SET_PRIVATE_ID_STATE. But there is plenty of space
> in access_query_e for new controls.
> 

OK, that should be easier than trying to find a more generic solution.

Regards,

-- 
Denis Charmet - TypX
Le mauvais esprit est un art de vivre



More information about the vlc-devel mailing list