display: export vout_display_SetSize() (refs #21604)
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 12 Jan 2019 14:43:18 +0000 (16:43 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 12 Jan 2019 14:46:03 +0000 (16:46 +0200)
include/vlc_vout_display.h
src/libvlccore.sym
src/video_output/display.c
src/video_output/video_output.c
src/video_output/vout_wrapper.h

index 04dc010..125f532 100644 (file)
@@ -345,6 +345,9 @@ static inline void vout_display_Display(vout_display_t *vd, picture_t *picture)
     picture_Release(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;
index 4551406..fe69d7b 100644 (file)
@@ -753,6 +753,7 @@ vout_display_SendMouseMovedDisplayCoordinates
 vout_display_New
 vout_display_Delete
 vout_display_Prepare
+vout_display_SetSize
 xml_Create
 text_style_Copy
 text_style_Create
index 9b2d9fe..b9fefdc 100644 (file)
@@ -596,7 +596,7 @@ void vout_UpdateDisplaySourceProperties(vout_display_t *vd, const video_format_t
     vout_display_Reset(vd);
 }
 
-void vout_SetDisplaySize(vout_display_t *vd, unsigned width, unsigned height)
+void vout_display_SetSize(vout_display_t *vd, unsigned width, unsigned height)
 {
     vout_display_priv_t *osys = container_of(vd, vout_display_priv_t, display);
 
index 688be82..65d1b7d 100644 (file)
@@ -1596,8 +1596,8 @@ static int ThreadControl(vout_thread_t *vout, vout_control_cmd_t cmd)
         ThreadProcessMouseState(vout, &cmd.mouse);
         break;
     case VOUT_CONTROL_DISPLAY_SIZE:
-        vout_SetDisplaySize(vout->p->display,
-                            cmd.window.width, cmd.window.height);
+        vout_display_SetSize(vout->p->display,
+                             cmd.window.width, cmd.window.height);
         break;
     case VOUT_CONTROL_DISPLAY_FILLED:
         vout_SetDisplayFilled(vout->p->display, cmd.boolean);
index 182bd3b..33007d2 100644 (file)
@@ -38,7 +38,6 @@ bool vout_IsDisplayFiltered(vout_display_t *);
 picture_t * vout_FilterDisplay(vout_display_t *, picture_t *);
 void vout_FilterFlush(vout_display_t *);
 
-void vout_SetDisplaySize(vout_display_t *, unsigned width, unsigned height);
 void vout_SetDisplayFilled(vout_display_t *, bool is_filled);
 void vout_SetDisplayZoom(vout_display_t *, unsigned num, unsigned den);
 void vout_SetDisplayAspect(vout_display_t *, unsigned num, unsigned den);