<html><head></head><body>Hi,<br><br>Remove 'inline' if you privatise a function.<br><br><div class="gmail_quote">Le 14 janvier 2020 10:55:40 GMT+02: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">It's only used locally in display.c.<hr> include/vlc_vout_display.h | 13 +------------<br> src/video_output/display.c | 11 +++++++++++<br> 2 files changed, 12 insertions(+), 12 deletions(-)<br><br>diff --git a/include/vlc_vout_display.h b/include/vlc_vout_display.h<br>index 1827592887b..664b7706a9b 100644<br>--- a/include/vlc_vout_display.h<br>+++ b/include/vlc_vout_display.h<br>@@ -324,7 +324,7 @@ struct vout_display_t {<br> *<br> * This callback is called once a picture buffer content is ready,<br> * as far in advance as possible to the intended display time,<br>- * but only after the previous picture was displayed. <br>+ * but only after the previous picture was displayed.<br> *<br> * The callback should perform any preprocessing operation that will not<br> * actually cause the picture to be shown, such as blending the subpicture<br>@@ -439,17 +439,6 @@ static inline void vout_display_Display(vout_display_t *vd, picture_t *picture)<br> VLC_API<br> void vout_display_SetSize(vout_display_t *vd, unsigned width, unsigned height);<br> <br>-static inline int vout_display_Control(vout_display_t *vd, int query, ...)<br>-{<br>- va_list ap;<br>- int ret;<br>-<br>- va_start(ap, query);<br>- ret = vd->control(vd, query, ap);<br>- va_end(ap);<br>- return ret;<br>-}<br>-<br> VLC_API void vout_display_SendEventPicturesInvalid(vout_display_t *vd);<br> <br> static inline void vout_display_SendEventMousePressed(vout_display_t *vd, int button)<br>diff --git a/src/video_output/display.c b/src/video_output/display.c<br>index 890b2ceaf96..0dd443f3d77 100644<br>--- a/src/video_output/display.c<br>+++ b/src/video_output/display.c<br>@@ -61,6 +61,17 @@ static picture_t *VideoBufferNew(filter_t *filter)<br> return picture_pool_Get(pool);<br> }<br> <br>+static inline int vout_display_Control(vout_display_t *vd, int query, ...)<br>+{<br>+ va_list ap;<br>+ int ret;<br>+<br>+ va_start(ap, query);<br>+ ret = vd->control(vd, query, ap);<br>+ va_end(ap);<br>+ return ret;<br>+}<br>+<br> /*****************************************************************************<br> *<br> *****************************************************************************/</pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>