[MPlayer-dev-eng] [PATCH] dvd subtitle and audio selection

Arpi arpi at thot.banki.hu
Sat Aug 2 22:49:51 CEST 2003


Hi,

> Attached below is a patch I've put into my latest cygwin MPlayer
> package.  (released this morning)  It adds runtime selection of dvd
> subtitle and audio tracks.  It could probably use a small bit of
> cleanup.  For example, I use osd_show_vobsub_changed for dvd subtitle
> message instead of a new variable.  Small things like that should
> probably be cleaned up.  But otherwise, I'm very happy with it.
> 
> Please test and let me know if it's okay to commit.
> If not, is it okay to commit after small cleanup?

this was discussed many times in teh past: it's not possible (recommended)
to switch just audio id, and then wait what happens.
after you changed audio stream id, you have to
- flush demuxers' dp queue
- reinit codec to new format (when switching between 2.0, 5.1, dts etc)
- reinit af and ao when number of channels or samplerate changed

and unfortuanetlly g1 was not designed to allow changing codec while playing


A'rpi / Astral & ESP-team

--
Developer of MPlayer G2, the Movie Framework for all - http://www.MPlayerHQ.hu



More information about the MPlayer-dev-eng mailing list