]> git.sesse.net Git - vlc/blobdiff - modules/video_filter/mosaic.c
mft: Link to mfplat when building with msvc
[vlc] / modules / video_filter / mosaic.c
index 7ed5dc497fb4738319dc1e5dc61c2fcf205208fb..63d74a759574eb4cc6a4d067b36170721c549ce5 100644 (file)
@@ -648,10 +648,10 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
         if( !p_region )
         {
             msg_Err( p_filter, "cannot allocate SPU region" );
-            filter_DeleteSubpicture( p_filter, p_spu );
+            subpicture_Delete( p_spu );
             vlc_global_unlock( VLC_MOSAIC_MUTEX );
             vlc_mutex_unlock( &p_sys->lock );
-            return p_spu;
+            return NULL;
         }
 
         if( p_es->i_x >= 0 && p_es->i_y >= 0 )