[vlc-devel] [PATCH 4/5] vout: create spu_t only when needed
Thomas Guillem
thomas at gllm.fr
Mon Jun 3 15:41:35 CEST 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 b0915b2edf..44bde46dfc 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1851,7 +1851,8 @@ vout_thread_t *vout_Create(vlc_object_t *object)
/* Initialize subpicture unit */
vlc_mutex_init(&sys->spu_lock);
- sys->spu = spu_Create(vout, vout);
+ sys->spu = var_InheritBool(vout, "spu") || var_InheritBool(vout, "osd") ?
+ spu_Create(vout, vout) : NULL;
vout_control_Init(&sys->control);
--
2.20.1
More information about the vlc-devel
mailing list