[vlc-devel] [PATCH 05/13] Replace sout_access_out_sys_t* by void*
Romain Vimont
rom1v at videolabs.io
Tue Apr 24 11:18:23 CEST 2018
See #17078
---
include/vlc_sout.h | 2 +-
modules/stream_out/chromecast/cast.cpp | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/vlc_sout.h b/include/vlc_sout.h
index 0165e95134..33ac289ace 100644
--- a/include/vlc_sout.h
+++ b/include/vlc_sout.h
@@ -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 * );
diff --git a/modules/stream_out/chromecast/cast.cpp b/modules/stream_out/chromecast/cast.cpp
index b8a5840347..0df0006e4d 100644
--- a/modules/stream_out/chromecast/cast.cpp
+++ b/modules/stream_out/chromecast/cast.cpp
@@ -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();
}
--
2.17.0
More information about the vlc-devel
mailing list