[MPlayer-dev-eng] DVDNAV Next Issues
Nico Sabbi
Nicola.Sabbi at poste.it
Tue Jan 29 23:34:51 CET 2008
Il Tuesday 29 January 2008 23:25:46 Ötvös Attila ha scritto:
> 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.
>
I see it exactly the other way round:
user selects language -> dvdnav selects button and interprets it->
audio stream in the VM has chamged -> DVDNAV_AUDIO_STREAM_CHANGE event
to the application
Mplayer/application X doesn't have any business with changing the status of the VM
More information about the MPlayer-dev-eng
mailing list