Commit 3e5af5bd authored by Rémi Duraffort's avatar Rémi Duraffort

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

parent fdc86de6
...@@ -670,8 +670,8 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date ) ...@@ -670,8 +670,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