mosaic: fix potential deadlock (unlocking in the right order).
authorRémi Duraffort <ivoire@videolan.org>
Fri, 26 Jun 2009 09:54:38 +0000 (11:54 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Fri, 26 Jun 2009 11:10:45 +0000 (13:10 +0200)
modules/video_filter/mosaic.c

index dfee473..e367206 100644 (file)
@@ -670,8 +670,8 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
         {
             msg_Err( p_filter, "cannot allocate SPU region" );
             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->lock );
             return p_spu;
         }