[vlc-devel] [PATCH 3/5] vout: fix assert if splitter module is missing

Rémi Denis-Courmont remi at remlab.net
Wed Feb 20 17:56:55 CET 2019


Le keskiviikkona 20. helmikuuta 2019, 18.39.57 EET Thomas Guillem a écrit :
> ---
>  src/video_output/video_output.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/src/video_output/video_output.c
> b/src/video_output/video_output.c index 4c4f55af68..8583d7c8e9 100644
> --- a/src/video_output/video_output.c
> +++ b/src/video_output/video_output.c
> @@ -1665,7 +1665,8 @@ static vout_thread_t *VoutCreate(vlc_object_t *object,
> vout->p = sys;
> 
>      /* Get splitter name if present */
> -    sys->splitter_name = var_InheritString(vout, "video-splitter");
> +    sys->splitter_name = config_GetType("video-splitter") ?
> +        var_InheritString(vout, "video-splitter") : NULL;
>      if (sys->splitter_name != NULL) {
>          var_Create(vout, "window", VLC_VAR_STRING);
>          var_SetString(vout, "window", "wdummy");

OK.

-- 
Реми Дёни-Курмон
http://www.remlab.net/





More information about the vlc-devel mailing list