[MPlayer-dev-eng] [PATCH] Optional parameter for switch_audio

Michael Behrisch list at behrisch.de
Thu Apr 14 07:41:03 CEST 2005


Am Mittwoch, 13. April 2005 03:33 schrieb kiriuja:
> The attached patch allows switching to a specific audio stream in MPEG
> files, instead of having to cycle through them. The optional parameter
> gives the audio stream index. By default it cycles through the streams
> as before.
>

Thanks for the patch.

> Could somebody please check and commit?
>

I did not compile yet but have already a minor remark.
Please do not make demuxer_switch_audio void.
I thought returning the number of the audio track selected would
make it easier to add OSD support as with the subtitles

> If not I will update the patch whenever switch_audio updates are
> committed for other demuxers, unless Michael is willing to merge this
> into his patches..

Sorry the commit for mkv came too early ;-) and I don't think I will 
add support for other containers.

Michael




More information about the MPlayer-dev-eng mailing list