]> git.sesse.net Git - vlc/blobdiff - modules/video_filter/mosaic.c
android_window: check subtitles bounds
[vlc] / modules / video_filter / mosaic.c
index a9aef4416b923b94e1b28e78dd2bd57fa41d290e..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" );
-            p_filter->pf_sub_buffer_del( 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 )