[vlc-devel] [PATCH] timeshift: ES_OUT_RESTART_ES with NULL is a valid value
Steve Lhomme
robux4 at videolabs.io
Wed Mar 30 08:14:46 CEST 2016
---
src/input/es_out_timeshift.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/input/es_out_timeshift.c b/src/input/es_out_timeshift.c
index befc1b7..da0f493 100644
--- a/src/input/es_out_timeshift.c
+++ b/src/input/es_out_timeshift.c
@@ -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,
--
2.7.0
More information about the vlc-devel
mailing list