Commit 3a021a48 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

timeshift: ES_OUT_RESTART_ES with NULL is a valid value

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent f0b54ded
......@@ -1553,7 +1553,8 @@ static int CmdExecuteControl( es_out_t *p_out, ts_cmd_t *p_cmd )
case ES_OUT_SET_ES: /* arg1= es_out_id_t* */
case ES_OUT_RESTART_ES: /* arg1= es_out_id_t* */
case ES_OUT_SET_ES_DEFAULT: /* arg1= es_out_id_t* */
return es_out_Control( p_out, i_query, p_cmd->u.control.u.p_es->p_es );
return es_out_Control( p_out, i_query, !p_cmd->u.control.u.p_es ? NULL :
p_cmd->u.control.u.p_es->p_es );
case ES_OUT_SET_ES_STATE:/* arg1= es_out_id_t* arg2=bool */
return es_out_Control( p_out, i_query, p_cmd->u.control.u.es_bool.p_es->p_es,
......
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