[vlc-commits] vout: initialize control variables

Thomas Guillem git at videolan.org
Wed Oct 9 14:16:56 CEST 2019


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Oct  9 13:58:11 2019 +0200| [1836cc6d42178ae55bc1369ab00b919d1c3aae03] | committer: Thomas Guillem

vout: initialize control variables

Not fixing anything since this control struct is allocated from the
vlc_object_t that is 0ed.

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

 src/video_output/control.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/video_output/control.c b/src/video_output/control.c
index e456f19869..616ea566cf 100644
--- a/src/video_output/control.c
+++ b/src/video_output/control.c
@@ -53,6 +53,8 @@ void vout_control_Init(vout_control_t *ctrl)
     vlc_cond_init(&ctrl->wait_request);
     vlc_cond_init(&ctrl->wait_available);
 
+    ctrl->is_held = false;
+    ctrl->is_waiting = false;
     ctrl->is_dead = false;
     ctrl->can_sleep = true;
     ARRAY_INIT(ctrl->cmd);



More information about the vlc-commits mailing list