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

Thomas Guillem thomas at gllm.fr
Thu Jun 4 10:56:56 CEST 2015


On Wed, Jun 3, 2015, at 18:48, Rémi Denis-Courmont wrote:
> Le mercredi 03 juin 2015, 17:35:44 Thomas Guillem a écrit :
> > if p-dec->b_try_next is set to true, the current module will be unloaded and
> > a next one will be tried.
> 
> For audio, we need to switch back and forth between decode to PCM and
> S/PDIF 
> encapsulation. Therefore I believe that going through the decoder list
> from 
> the beginning is unavoidable.

Why would you need to start from the beginning ?

Imagine you have the following decoder list: "a52spdif,a52dec,avcodec"

Both a52* are submodule in a52.c, a52spdif output VLC_CODEC_A52 and
a52dec output VLC_CODEC_FL32.

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.

> 
> -- 
> 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