[vlc-commits] vout: privatize vout_display_owner_sys_t (refs #17078)

Rémi Denis-Courmont git at videolan.org
Sun Feb 19 21:59:01 CET 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Feb 18 13:00:18 2017 +0200| [a78c4959db4059b0764c3c66d6af025ec09638ee] | committer: Rémi Denis-Courmont

vout: privatize vout_display_owner_sys_t (refs #17078)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a78c4959db4059b0764c3c66d6af025ec09638ee
---

 include/vlc_vout_display.h | 3 +--
 src/video_output/display.c | 4 ++--
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/include/vlc_vout_display.h b/include/vlc_vout_display.h
index 70c5640..46825be 100644
--- a/include/vlc_vout_display.h
+++ b/include/vlc_vout_display.h
@@ -51,7 +51,6 @@
 typedef struct vout_display_t vout_display_t;
 typedef struct vout_display_sys_t vout_display_sys_t;
 typedef struct vout_display_owner_t vout_display_owner_t;
-typedef struct vout_display_owner_sys_t vout_display_owner_sys_t;
 
 /**
  * Possible alignments for vout_display.
@@ -226,7 +225,7 @@ enum {
 struct vout_display_owner_t {
     /* Private place holder for the vout_display_t creator
      */
-    vout_display_owner_sys_t *sys;
+    void *sys;
 
     /* Event coming from the module
      *
diff --git a/src/video_output/display.c b/src/video_output/display.c
index 6899054..d5bdc69 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -330,7 +330,7 @@ void vout_display_SendMouseMovedDisplayCoordinates(vout_display_t *vd, video_ori
     }
 }
 
-struct vout_display_owner_sys_t {
+typedef struct {
     vout_thread_t   *vout;
     bool            is_wrapper;  /* Is the current display a wrapper */
     vout_display_t  *wrapper; /* Vout display wrapper */
@@ -421,7 +421,7 @@ struct vout_display_owner_sys_t {
         vlc_thread_t thread;
         block_fifo_t *fifo;
     } event;
-};
+} vout_display_owner_sys_t;
 
 static int VoutDisplayCreateRender(vout_display_t *vd)
 {



More information about the vlc-commits mailing list