[MPlayer-dev-eng] DVDNAV Next Issues

Ötvös Attila oattila at chello.hu
Tue Jan 29 23:25:46 CET 2008


2008. január 29. 22.43 dátummal Nico Sabbi ezt írta:
Hi Nico Sabbi!

> > I think of skiping if switch_audio access (settings) to AST_REG in vm of
> > dvdnav (and SPST_REG in vm of dvdnav too).
>
> sorry but I can't understand nor guess what you mean, explain
> better please.
> Anyway, I think that the only clean way to implement audio
> selection by means of the menu is to intercept audio selection
> events (DVDNAV_AUDIO_STREAM_CHANGE), then to identify
> the physical audio stream X and to insert in the input queue
> a command "switch_audio X".
> I began implementing it in the week-end, but unfortunately the code
> of dvdnav that reports the audio stream selected is buggy and totally
> unreliable. I need to fix it before going on

I think that dvdnav_set_active_audio_stream() or similar would be:

1,
user call menu -> select audio -> continue play -> 
DVDNAV_AUDIO_STREAM_CHANGE -> X=dvdnav_get_active_audio_stream() (or 
dvdnav_audio_change_event_t) -> switch_audio X

2,
user press '#'  -> dvdnav_set_active_audio_stream(step 1) -> 
DVDNAV_AUDIO_STREAM_CHANGE -> X=dvdnav_get_active_audio_stream() -> 
switch_audio X

in order to work both.

Best regard.
Attila



More information about the MPlayer-dev-eng mailing list