[vlc-commits] core: replace sout_access_out_sys_t* by void*
Romain Vimont
git at videolan.org
Thu Apr 26 01:42:55 CEST 2018
vlc | branch: master | Romain Vimont <rom1v at videolabs.io> | Mon Apr 23 18:13:52 2018 +0200| [1300796bab3adbaa5ac4d9b7f6040a55ece2a27d] | committer: Jean-Baptiste Kempf
core: replace sout_access_out_sys_t* by void*
See #17078
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1300796bab3adbaa5ac4d9b7f6040a55ece2a27d
---
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();
}
More information about the vlc-commits
mailing list