[vlc-commits] vout: add an assertion
Rémi Denis-Courmont
git at videolan.org
Mon Apr 1 18:25:43 CEST 2019
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Apr 1 19:25:14 2019 +0300| [ad43120d829fb112cb60ea9c59e3b7c07e999f4e] | committer: Rémi Denis-Courmont
vout: add an assertion
The video output thread can only be flushed if it is active.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ad43120d829fb112cb60ea9c59e3b7c07e999f4e
---
src/video_output/video_output.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 0ce46d893b..cbd9909a5d 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1285,6 +1285,8 @@ void vout_Flush(vout_thread_t *vout, vlc_tick_t date)
{
vout_thread_sys_t *sys = vout->p;
+ assert(vout->p->original.i_chroma != 0);
+
vout_control_Hold(&sys->control);
vout_FlushUnlocked(vout, false, date);
vout_control_Release(&sys->control);
More information about the vlc-commits
mailing list