Commit 40a40187 authored by Thomas Guillem's avatar Thomas Guillem

videotoolbox: clean old parameter sets on restart

parent 7ff5a3f7
......@@ -1781,6 +1781,11 @@ static int DecodeBlock(decoder_t *p_dec, block_t *p_block)
/* Session will be started by Late Start code block */
StopVideoToolbox(p_dec);
if (p_dec->fmt_in.i_extra == 0)
{
/* Clean old parameter sets since they may be corrupt */
hxxx_helper_clean(&p_sys->hh);
}
vlc_mutex_lock(&p_sys->lock);
p_sys->vtsession_status = VTSESSION_STATUS_OK;
......
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