<html><head></head><body>Obviously okay<br><br><div class="gmail_quote">Le 22 octobre 2019 14:28:18 GMT+03:00, Steve Lhomme <robux4@ycbcr.xyz> 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">Rather than accessing vout->p each time.<br><br>The value of vout->p doesn't change during any of these calls.<hr> src/video_output/video_output.c | 52 ++++++++++++++++-----------------<br> 1 file changed, 26 insertions(+), 26 deletions(-)<br><br>diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c<br>index c2857541b0b..379cb257274 100644<br>--- a/src/video_output/video_output.c<br>+++ b/src/video_output/video_output.c<br>@@ -420,7 +420,7 @@ void vout_ChangeDisplaySize(vout_thread_t *vout,<br> {<br>     vout_thread_sys_t *sys = vout->p;<br> <br>-    assert(!vout->p->dummy);<br>+    assert(!sys->dummy);<br> <br>     /* DO NOT call this outside the vout window callbacks */<br>     vlc_mutex_lock(&sys->display_lock);<br>@@ -551,8 +551,8 @@ void vout_ChangeCropWindow(vout_thread_t *vout,<br>     vlc_mutex_unlock(&sys->window_lock);<br> <br>     if (sys->display != NULL)<br>-        vout_SetDisplayCrop(vout->p->display, 0, 0, x, y, width, height);<br>-    vlc_mutex_unlock(&vout->p->display_lock);<br>+        vout_SetDisplayCrop(sys->display, 0, 0, x, y, width, height);<br>+    vlc_mutex_unlock(&sys->display_lock);<br> }<br> <br> void vout_ChangeCropBorder(vout_thread_t *vout,<br>@@ -583,7 +583,7 @@ void vout_ChangeCropBorder(vout_thread_t *vout,<br>     vlc_mutex_unlock(&sys->window_lock);<br> <br>     if (sys->display != NULL)<br>-        vout_SetDisplayCrop(vout->p->display, 0, 0,<br>+        vout_SetDisplayCrop(sys->display, 0, 0,<br>                             left, top, -right, -bottom);<br>     vlc_mutex_unlock(&sys->display_lock);<br> }<br>@@ -631,7 +631,7 @@ void vout_ChangeViewpoint(vout_thread_t *vout,<br> <br>     vout_control_cmd_Init(&cmd, VOUT_CONTROL_VIEWPOINT);<br>     cmd.viewpoint = *p_viewpoint;<br>-    vout_control_Push(&vout->p->control, &cmd);<br>+    vout_control_Push(&sys->control, &cmd);<br> }<br> <br> /* */<br>@@ -1352,33 +1352,33 @@ static void vout_FlushUnlocked(vout_thread_t *vout, bool below,<br> {<br>     vout_thread_sys_t *sys = vout->p;<br> <br>-    vout->p->step.timestamp = VLC_TICK_INVALID;<br>-    vout->p->step.last      = VLC_TICK_INVALID;<br>+    sys->step.timestamp = VLC_TICK_INVALID;<br>+    sys->step.last      = VLC_TICK_INVALID;<br> <br>     ThreadFilterFlush(vout, false); /* FIXME too much */<br> <br>-    picture_t *last = vout->p->displayed.decoded;<br>+    picture_t *last = sys->displayed.decoded;<br>     if (last) {<br>         if ((date == VLC_TICK_INVALID) ||<br>             ( below && last->date <= date) ||<br>             (!below && last->date >= date)) {<br>             picture_Release(last);<br> <br>-            vout->p->displayed.decoded   = NULL;<br>-            vout->p->displayed.date      = VLC_TICK_INVALID;<br>-            vout->p->displayed.timestamp = VLC_TICK_INVALID;<br>+            sys->displayed.decoded   = NULL;<br>+            sys->displayed.date      = VLC_TICK_INVALID;<br>+            sys->displayed.timestamp = VLC_TICK_INVALID;<br>         }<br>     }<br> <br>-    picture_fifo_Flush(vout->p->decoder_fifo, date, below);<br>+    picture_fifo_Flush(sys->decoder_fifo, date, below);<br> <br>     assert(sys->display != NULL);<br>-    vlc_mutex_lock(&vout->p->display_lock);<br>-    vout_FilterFlush(vout->p->display);<br>-    vlc_mutex_unlock(&vout->p->display_lock);<br>+    vlc_mutex_lock(&sys->display_lock);<br>+    vout_FilterFlush(sys->display);<br>+    vlc_mutex_unlock(&sys->display_lock);<br> <br>-    vlc_clock_Reset(vout->p->clock);<br>-    vlc_clock_SetDelay(vout->p->clock, vout->p->delay);<br>+    vlc_clock_Reset(sys->clock);<br>+    vlc_clock_SetDelay(sys->clock, sys->delay);<br> }<br> <br> void vout_Flush(vout_thread_t *vout, vlc_tick_t date)<br>@@ -1422,8 +1422,8 @@ void vout_ChangeDelay(vout_thread_t *vout, vlc_tick_t delay)<br>     assert(sys->display);<br> <br>     vout_control_Hold(&sys->control);<br>-    vlc_clock_SetDelay(vout->p->clock, delay);<br>-    vout->p->delay = delay;<br>+    vlc_clock_SetDelay(sys->clock, delay);<br>+    sys->delay = delay;<br>     vout_control_Release(&sys->control);<br> }<br> <br>@@ -1814,11 +1814,11 @@ void vout_Release(vout_thread_t *vout)<br>         return;<br>     }<br> <br>-    free(vout->p->splitter_name);<br>+    free(sys->splitter_name);<br> <br>     /* Destroy the locks */<br>-    vlc_mutex_destroy(&vout->p->window_lock);<br>-    vlc_mutex_destroy(&vout->p->filter.lock);<br>+    vlc_mutex_destroy(&sys->window_lock);<br>+    vlc_mutex_destroy(&sys->filter.lock);<br> <br>     if (sys->dec_device)<br>         vlc_decoder_device_Release(sys->dec_device);<br>@@ -1826,15 +1826,15 @@ void vout_Release(vout_thread_t *vout)<br>     assert(!sys->window_enabled);<br>     vout_display_window_Delete(sys->display_cfg.window);<br> <br>-    vout_control_Clean(&vout->p->control);<br>+    vout_control_Clean(&sys->control);<br>     vlc_mutex_destroy(&sys->display_lock);<br> <br>     /* */<br>-    vout_statistic_Clean(&vout->p->statistic);<br>+    vout_statistic_Clean(&sys->statistic);<br> <br>     /* */<br>-    vout_snapshot_Destroy(vout->p->snapshot);<br>-    video_format_Clean(&vout->p->original);<br>+    vout_snapshot_Destroy(sys->snapshot);<br>+    video_format_Clean(&sys->original);<br>     vlc_object_delete(VLC_OBJECT(vout));<br> }<br> </pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>