[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
Mon Jul 22 22:57:10 CEST 2013


Hi,

After a quick look at the code :

You can do selection from the asf parser: using STREAM_CONTROL_ACCESS
despite what the header says :).

STREAM_CONTROL_ACCESS with ACCESS_SET_PRIVATE_ID_STATE, <stream number>,
bool b_select.

This would imply to disable the part between the lines 792 and 800 of
demux/asf/asf.c to present all the streams to the libvlc.

Of course there is the stream selection issue. The easiest way is to
poll at the beginning of the Demux function which stream is selected
using the ES_OUT_GET_ES_STATE and call ACCESS_SET_PRIVATE_ID_STATE when
the state is changed.

Regards,

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



More information about the vlc-devel mailing list