[vlc-devel] [PATCH] display: make vout_display_Control private

Rémi Denis-Courmont remi at remlab.net
Tue Jan 14 13:36:26 CET 2020


Hi,

Remove 'inline' if you privatise a function.

Le 14 janvier 2020 10:55:40 GMT+02:00, Steve Lhomme <robux4 at ycbcr.xyz> a écrit :
>It's only used locally in display.c.
>---
> include/vlc_vout_display.h | 13 +------------
> src/video_output/display.c | 11 +++++++++++
> 2 files changed, 12 insertions(+), 12 deletions(-)
>
>diff --git a/include/vlc_vout_display.h b/include/vlc_vout_display.h
>index 1827592887b..664b7706a9b 100644
>--- a/include/vlc_vout_display.h
>+++ b/include/vlc_vout_display.h
>@@ -324,7 +324,7 @@ struct vout_display_t {
>      *
>      * This callback is called once a picture buffer content is ready,
>      * as far in advance as possible to the intended display time,
>-     * but only after the previous picture was displayed. 
>+     * but only after the previous picture was displayed.
>      *
>* The callback should perform any preprocessing operation that will not
>* actually cause the picture to be shown, such as blending the
>subpicture
>@@ -439,17 +439,6 @@ static inline void
>vout_display_Display(vout_display_t *vd, picture_t *picture)
> VLC_API
>void vout_display_SetSize(vout_display_t *vd, unsigned width, unsigned
>height);
> 
>-static inline int vout_display_Control(vout_display_t *vd, int query,
>...)
>-{
>-    va_list ap;
>-    int ret;
>-
>-    va_start(ap, query);
>-    ret = vd->control(vd, query, ap);
>-    va_end(ap);
>-    return ret;
>-}
>-
>VLC_API void vout_display_SendEventPicturesInvalid(vout_display_t *vd);
> 
>static inline void vout_display_SendEventMousePressed(vout_display_t
>*vd, int button)
>diff --git a/src/video_output/display.c b/src/video_output/display.c
>index 890b2ceaf96..0dd443f3d77 100644
>--- a/src/video_output/display.c
>+++ b/src/video_output/display.c
>@@ -61,6 +61,17 @@ static picture_t *VideoBufferNew(filter_t *filter)
>     return picture_pool_Get(pool);
> }
> 
>+static inline int vout_display_Control(vout_display_t *vd, int query,
>...)
>+{
>+    va_list ap;
>+    int ret;
>+
>+    va_start(ap, query);
>+    ret = vd->control(vd, query, ap);
>+    va_end(ap);
>+    return ret;
>+}
>+
>/*****************************************************************************
>  *
>*****************************************************************************/
>-- 
>2.17.1
>
>_______________________________________________
>vlc-devel mailing list
>To unsubscribe or modify your subscription options:
>https://mailman.videolan.org/listinfo/vlc-devel

-- 
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20200114/f32a24ac/attachment.html>


More information about the vlc-devel mailing list