[vlc-commits] screen: prepare for void *p_sys

Rémi Denis-Courmont git at videolan.org
Sun Dec 3 16:57:55 CET 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Dec  3 17:05:50 2017 +0200| [8489971b3c3cec81cc3edb52b36f71ffcd1e9a49] | committer: Rémi Denis-Courmont

screen: prepare for void *p_sys

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

 modules/access/screen/win32.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/modules/access/screen/win32.c b/modules/access/screen/win32.c
index 6b94def13f..4c7970ec26 100644
--- a/modules/access/screen/win32.c
+++ b/modules/access/screen/win32.c
@@ -65,14 +65,16 @@ struct screen_data_t
  */
 static inline void FromScreenCoordinates( demux_t *p_demux, POINT *p_point )
 {
-    screen_data_t *p_data = p_demux->p_sys->p_data;
+    demux_sys_t *p_sys = p_demux->p_sys;
+    screen_data_t *p_data = p_sys->p_data;
     p_point->x += p_data->ptl.x;
     p_point->y += p_data->ptl.y;
 }
 
 static inline void ToScreenCoordinates( demux_t *p_demux, POINT *p_point )
 {
-    screen_data_t *p_data = p_demux->p_sys->p_data;
+    demux_sys_t *p_sys = p_demux->p_sys;
+    screen_data_t *p_data = p_sys->p_data;
     p_point->x -= p_data->ptl.x;
     p_point->y -= p_data->ptl.y;
 }



More information about the vlc-commits mailing list