<html><head></head><body>Both LGTM<br><br><div class="gmail_quote">Le 9 octobre 2019 15:10:11 GMT+03:00, Thomas Guillem <thomas@gllm.fr> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">If there is no display, there is no thread and vout_control_Hold() will wait<br>indefinitely.<hr> src/video_output/video_output.c | 6 ++++++<br> 1 file changed, 6 insertions(+)<br><br>diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c<br>index 21d55bc89c..a504691386 100644<br>--- a/src/video_output/video_output.c<br>+++ b/src/video_output/video_output.c<br>@@ -1324,6 +1324,7 @@ static int ThreadDisplayPicture(vout_thread_t *vout, vlc_tick_t *deadline)<br> void vout_ChangePause(vout_thread_t *vout, bool is_paused, vlc_tick_t date)<br> {<br> assert(!vout->p->dummy);<br>+ assert(vout->p->display);<br> <br> vout_control_Hold(&vout->p->control);<br> assert(!vout->p->pause.is_on || !is_paused);<br>@@ -1381,6 +1382,7 @@ void vout_Flush(vout_thread_t *vout, vlc_tick_t date)<br> {<br> vout_thread_sys_t *sys = vout->p;<br> assert(!sys->dummy);<br>+ assert(sys->display);<br> <br> vout_control_Hold(&sys->control);<br> vout_FlushUnlocked(vout, false, date);<br>@@ -1390,6 +1392,7 @@ void vout_Flush(vout_thread_t *vout, vlc_tick_t date)<br> void vout_NextPicture(vout_thread_t *vout, vlc_tick_t *duration)<br> {<br> assert(!vout->p->dummy);<br>+ assert(vout->p->display);<br> *duration = 0;<br> <br> vout_control_Hold(&vout->p->control);<br>@@ -1413,6 +1416,7 @@ void vout_ChangeDelay(vout_thread_t *vout, vlc_tick_t delay)<br> {<br> vout_thread_sys_t *sys = vout->p;<br> assert(!sys->dummy);<br>+ assert(sys->display);<br> <br> vout_control_Hold(&sys->control);<br> vlc_clock_SetDelay(vout->p->clock, delay);<br>@@ -1424,6 +1428,7 @@ void vout_ChangeRate(vout_thread_t *vout, float rate)<br> {<br> vout_thread_sys_t *sys = vout->p;<br> assert(!sys->dummy);<br>+ assert(sys->display);<br> <br> vout_control_Hold(&sys->control);<br> sys->rate = rate;<br>@@ -1610,6 +1615,7 @@ void vout_Cancel(vout_thread_t *vout, bool canceled)<br> {<br> vout_thread_sys_t *sys = vout->p;<br> assert(!sys->dummy);<br>+ assert(sys->display);<br> <br> vout_control_Hold(&sys->control);<br> if (sys->decoder_pool != NULL)</pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>