core: replace sout_access_out_sys_t* by void*
authorRomain Vimont <rom1v@videolabs.io>
Mon, 23 Apr 2018 16:13:52 +0000 (18:13 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 25 Apr 2018 23:35:37 +0000 (01:35 +0200)
See #17078

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
include/vlc_sout.h
modules/stream_out/chromecast/cast.cpp

index 0165e95..33ac289 100644 (file)
@@ -78,7 +78,7 @@ struct sout_access_out_t
     char                    *psz_access;
 
     char                    *psz_path;
-    sout_access_out_sys_t   *p_sys;
+    void                    *p_sys;
     int                     (*pf_seek)( sout_access_out_t *, off_t );
     ssize_t                 (*pf_read)( sout_access_out_t *, block_t * );
     ssize_t                 (*pf_write)( sout_access_out_t *, block_t * );
index b8a5840..0df0006 100644 (file)
@@ -653,7 +653,7 @@ void sout_access_out_sys_t::close()
 
 ssize_t AccessWrite(sout_access_out_t *p_access, block_t *p_block)
 {
-    sout_access_out_sys_t *p_sys = p_access->p_sys;
+    sout_access_out_sys_t *p_sys = reinterpret_cast<sout_access_out_sys_t *>( p_access->p_sys );
     return p_sys->write(p_access, p_block);
 }
 
@@ -691,7 +691,7 @@ static int AccessOpen(vlc_object_t *p_this)
 static void AccessClose(vlc_object_t *p_this)
 {
     sout_access_out_t *p_access = (sout_access_out_t*)p_this;
-    sout_access_out_sys_t *p_sys = p_access->p_sys;
+    sout_access_out_sys_t *p_sys = reinterpret_cast<sout_access_out_sys_t *>( p_access->p_sys );
 
     p_sys->close();
 }