[vlc-commits] vout: add missing spu_t checks

Thomas Guillem git at videolan.org
Tue Jun 18 08:49:10 CEST 2019


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Jun 18 08:46:43 2019 +0200| [06b8935d3a6de988ef28237a2a6b9985590add7b] | committer: Thomas Guillem

vout: add missing spu_t checks

3a8379b91e91c0d6a0b51c2a20de1596b453e720 was incomplete.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=06b8935d3a6de988ef28237a2a6b9985590add7b
---

 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 14333044dc..1ae84bbb1c 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1078,7 +1078,8 @@ static int ThreadDisplayRenderPicture(vout_thread_t *vout, bool is_forced)
 
     video_format_t fmt_spu_rot;
     video_format_ApplyRotation(&fmt_spu_rot, &fmt_spu);
-    subpicture_t *subpic = spu_Render(sys->spu,
+    subpicture_t *subpic = !sys->spu ? NULL :
+                           spu_Render(sys->spu,
                                       subpicture_chromas, &fmt_spu_rot,
                                       &vd->source, system_now,
                                       render_subtitle_date,



More information about the vlc-commits mailing list