[vlc-devel] [PATCH 4/5] decoder: add a way to try an other decoder module

Thomas Guillem thomas at gllm.fr
Thu Jun 4 11:29:28 CEST 2015


On Thu, Jun 4, 2015, at 11:09, Rémi Denis-Courmont wrote:
> Le 2015-06-04 11:56, Thomas Guillem a écrit :
> > Both a52 modules Open() will succeed, but the first one (a52spdif) 
> > may
> > fails if there is not audio output matching VLC_CODEC_A52. In that 
> > case,
> > Decoder will fallback to the next one in the list: a52dec.
> 
> So how do I reenable S/PDIF when the audio output changes during 
> playback?

Is it automatic ? I only see aout_DeviceSet that is called by UI or
hotkeys.

Anyway, the decoder should handle the aout_DeviceSet call via a new
funcion input_DecoderSetAudioDevice. This function will try to load
decoder modules from the beginning and set the good audio device.

> 
> -- 
> Rémi Denis-Courmont
> http://www.remlab.net/
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel



More information about the vlc-devel mailing list