[vlc-commits] [Git][videolan/vlc][master] sout: display: fix wrong decoder cast
François Cartegnie (@fcartegnie)
gitlab at videolan.org
Wed Feb 22 21:07:23 UTC 2023
François Cartegnie pushed to branch master at VideoLAN / VLC
Commits:
24465d37 by Alaric Senat at 2023-02-22T20:50:14+00:00
sout: display: fix wrong decoder cast
Since bdede41db40209a000b56bd30ef4ab4c4e876425, `Add` returns an
`id_sys_t` instead of a plain decoder. The cast must be adapted as the
decoder is now contained in the `id_sys` struct.
- - - - -
1 changed file:
- modules/stream_out/display.c
Changes:
=====================================
modules/stream_out/display.c
=====================================
@@ -179,9 +179,9 @@ static int Control( sout_stream_t *p_stream, int i_query, va_list args )
{
case SOUT_STREAM_ID_SPU_HIGHLIGHT:
{
- vlc_input_decoder_t *p_dec = va_arg( args, void * );
+ sout_stream_id_sys_t *id = va_arg( args, void * );
void *spu_hl = va_arg( args, void * );
- return vlc_input_decoder_SetSpuHighlight( p_dec, spu_hl );
+ return vlc_input_decoder_SetSpuHighlight( id->dec, spu_hl );
}
case SOUT_STREAM_IS_SYNCHRONOUS:
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/24465d371f61c895aeb617e5d985ff4dcdf36301
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/24465d371f61c895aeb617e5d985ff4dcdf36301
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list