[vlc-commits] es_out: add missing clock delete in case of failure
Thomas Guillem
git at videolan.org
Mon Mar 18 11:35:06 CET 2019
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Mar 18 11:30:32 2019 +0100| [6e42c4cb607b7922dcd6f7f8abd586fc6db16ca8] | committer: Thomas Guillem
es_out: add missing clock delete in case of failure
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6e42c4cb607b7922dcd6f7f8abd586fc6db16ca8
---
src/input/es_out.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/input/es_out.c b/src/input/es_out.c
index 2630b011cf..3352602849 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -1841,6 +1841,11 @@ static void EsOutCreateDecoder( es_out_t *out, es_out_id_t *p_es )
input_DecoderSetVoutMouseEvent( dec, p_es->mouse_event_cb,
p_es->mouse_event_userdata );
}
+ else
+ {
+ vlc_clock_Delete( p_es->p_clock );
+ p_es->p_clock = NULL;
+ }
p_es->p_dec = dec;
EsOutDecoderChangeDelay( out, p_es );
More information about the vlc-commits
mailing list