[vlc-devel] [PATCH 3/5] vout: fix assert if splitter module is missing
Thomas Guillem
thomas at gllm.fr
Wed Feb 20 17:39:57 CET 2019
---
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");
--
2.20.1
More information about the vlc-devel
mailing list