[vlc-devel] [PATCH v2 18/18] video_output: "stop" the vout on close even if there's no display

Steve Lhomme robux4 at ycbcr.xyz
Tue Nov 24 11:46:41 CET 2020


We should always disable the window so it's not hanging with no display module.
---
 src/video_output/video_output.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index b01d70acb07..03832a18594 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -2044,8 +2044,7 @@ void vout_Close(vout_thread_t *vout)
     vout_thread_sys_t *sys = VOUT_THREAD_TO_SYS(vout);
     assert(!sys->dummy);
 
-    if (sys->display != NULL)
-        vout_Stop(vout);
+    vout_Stop(vout);
 
     vout_IntfDeinit(VLC_OBJECT(vout));
     vout_snapshot_End(sys->snapshot);
-- 
2.26.2



More information about the vlc-devel mailing list