[vlc-commits] video_output: remove wrong assertion

Alexandre Janniaux git at videolan.org
Fri Mar 20 17:50:06 CET 2020


vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Tue Mar 17 10:15:52 2020 +0100| [091c907dd87ead2813425b783178cd56eb175099] | committer: Alexandre Janniaux

video_output: remove wrong assertion

If the display fails to open and a libvlc application request the media
player to pause, it will assert although you don't need a display to
pause the video output.

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

 src/video_output/video_output.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 0b3d1cac14..373c09f1dc 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1359,7 +1359,6 @@ static int ThreadDisplayPicture(vout_thread_t *vout, vlc_tick_t *deadline)
 void vout_ChangePause(vout_thread_t *vout, bool is_paused, vlc_tick_t date)
 {
     assert(!vout->p->dummy);
-    assert(vout->p->display);
 
     vout_control_Hold(&vout->p->control);
     assert(!vout->p->pause.is_on || !is_paused);



More information about the vlc-commits mailing list