[vlc-devel] [PATCH 3/5] input: es_out_timeshift: don't deref field on wrong/private struct
Francois Cartegnie
fcvlcdev at free.fr
Mon Apr 20 20:27:27 CEST 2020
---
src/input/es_out_timeshift.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/input/es_out_timeshift.c b/src/input/es_out_timeshift.c
index dbff49d4c5..11b1e6f8f9 100644
--- a/src/input/es_out_timeshift.c
+++ b/src/input/es_out_timeshift.c
@@ -1674,7 +1674,7 @@ static int CmdExecuteControl( es_out_t *p_out, ts_cmd_t *p_cmd )
}
static void CmdCleanControl( ts_cmd_t *p_cmd )
{
- if( p_cmd->u.control.in )
+ if( p_cmd->u.control.i_query < ES_OUT_TIMESHIFT_PRIVATE_START && p_cmd->u.control.in )
input_source_Release( p_cmd->u.control.in );
switch( p_cmd->u.control.i_query )
--
2.25.3
More information about the vlc-devel
mailing list