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

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


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

vnc: prepare for void *p_sys

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

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

diff --git a/modules/access/vnc.c b/modules/access/vnc.c
index 3cd4ab642b..97ae4a3d12 100644
--- a/modules/access/vnc.c
+++ b/modules/access/vnc.c
@@ -274,6 +274,7 @@ static rfbCredential* getCredentialHandler( rfbClient *p_client, int i_credentia
  *****************************************************************************/
 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;
@@ -303,7 +304,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:
@@ -313,7 +314,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