[vlc-devel] [RFC PATCH 2/2] decoder: fallback to a next module on error
Rémi Denis-Courmont
remi at remlab.net
Mon Apr 11 20:01:02 CEST 2016
Le 2016-04-08 16:44, Thomas Guillem a écrit :
> ---
> src/input/decoder.c | 39 ++++++++++++++++++++++++++++++++++-----
> 1 file changed, 34 insertions(+), 5 deletions(-)
>
> diff --git a/src/input/decoder.c b/src/input/decoder.c
> index a1d7414..a9375b0 100644
> --- a/src/input/decoder.c
> +++ b/src/input/decoder.c
> @@ -125,6 +125,9 @@ struct decoder_owner_sys_t
>
> /* Delay */
> mtime_t i_ts_delay;
> +
> + module_t **pp_tested_modules;
> + int i_tested_modules;
The idea is that you restart from the beginning. The core can't second
guess which modules will work. What about a reset after a reset? Maybe
you want to go back to the first module. Maybe you just want to go back
to the first module immediately - e.g. due to graphic card preemption.
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the vlc-devel
mailing list