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

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


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

rdp: prepare for void *p_sys

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

 modules/access/rdp.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/access/rdp.c b/modules/access/rdp.c
index 2992090219..7e6be4c1fd 100644
--- a/modules/access/rdp.c
+++ b/modules/access/rdp.c
@@ -279,6 +279,7 @@ static bool authenticateHandler( freerdp *p_instance, char** ppsz_username,
  *****************************************************************************/
 static int Control( demux_t *p_demux, int i_query, va_list args )
 {
+    demux_sys_t *p_sys = p_demux->p_sys;
     bool *pb;
     int64_t *pi64;
     double *p_dbl;
@@ -308,7 +309,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
 
         case DEMUX_GET_TIME:
             pi64 = va_arg( args, int64_t * );
-            *pi64 = mdate() - p_demux->p_sys->i_starttime;
+            *pi64 = mdate() - p_sys->i_starttime;
             return VLC_SUCCESS;
 
         case DEMUX_GET_LENGTH:
@@ -318,7 +319,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
 
         case DEMUX_GET_FPS:
             p_dbl = va_arg( args, double * );
-            *p_dbl = p_demux->p_sys->f_fps;
+            *p_dbl = p_sys->f_fps;
             return VLC_SUCCESS;
 
         case DEMUX_GET_META:



More information about the vlc-commits mailing list