[vlc-devel] [PATCH 2/2] video output: don't flush if the display is not started
Steve Lhomme
robux4 at ycbcr.xyz
Wed Oct 23 12:44:58 CEST 2019
It was either never started and nothing to be flushed, or it was stopped and
released, so nothing to be flushed either.
---
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 8c214a75765..070f1af8b22 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1385,7 +1385,8 @@ void vout_Flush(vout_thread_t *vout, vlc_tick_t date)
{
vout_thread_sys_t *sys = vout->p;
assert(!sys->dummy);
- assert(sys->display);
+ if (!sys->display)
+ return;
vout_control_Hold(&sys->control);
vout_FlushUnlocked(vout, false, date);
--
2.17.1
More information about the vlc-devel
mailing list