Commit 1300796b authored by Romain Vimont's avatar Romain Vimont Committed by Jean-Baptiste Kempf

core: replace sout_access_out_sys_t* by void*

See #17078
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 3de64989
...@@ -78,7 +78,7 @@ struct sout_access_out_t ...@@ -78,7 +78,7 @@ struct sout_access_out_t
char *psz_access; char *psz_access;
char *psz_path; char *psz_path;
sout_access_out_sys_t *p_sys; void *p_sys;
int (*pf_seek)( sout_access_out_t *, off_t ); int (*pf_seek)( sout_access_out_t *, off_t );
ssize_t (*pf_read)( sout_access_out_t *, block_t * ); ssize_t (*pf_read)( sout_access_out_t *, block_t * );
ssize_t (*pf_write)( sout_access_out_t *, block_t * ); ssize_t (*pf_write)( sout_access_out_t *, block_t * );
......
...@@ -653,7 +653,7 @@ void sout_access_out_sys_t::close() ...@@ -653,7 +653,7 @@ void sout_access_out_sys_t::close()
ssize_t AccessWrite(sout_access_out_t *p_access, block_t *p_block) 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); return p_sys->write(p_access, p_block);
} }
...@@ -691,7 +691,7 @@ static int AccessOpen(vlc_object_t *p_this) ...@@ -691,7 +691,7 @@ static int AccessOpen(vlc_object_t *p_this)
static void AccessClose(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_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(); p_sys->close();
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment