Commit 751e7e09 authored by Rémi Duraffort's avatar Rémi Duraffort

mosaic: fix potential deadlock (unlocking in the right order).

(cherry picked from commit 3e5af5bd)
Signed-off-by: default avatarRémi Duraffort <ivoire@videolan.org>
parent e8c13bef
...@@ -671,8 +671,8 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date ) ...@@ -671,8 +671,8 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
{ {
msg_Err( p_filter, "cannot allocate SPU region" ); msg_Err( p_filter, "cannot allocate SPU region" );
p_filter->pf_sub_buffer_del( p_filter, p_spu ); p_filter->pf_sub_buffer_del( p_filter, p_spu );
vlc_mutex_unlock( &p_sys->lock );
vlc_mutex_unlock( p_sys->p_lock ); vlc_mutex_unlock( p_sys->p_lock );
vlc_mutex_unlock( &p_sys->lock );
return p_spu; return p_spu;
} }
......
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