Commit 777329ab authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

filter: use filter_DeleteSubpicture

parent 81c9e32f
...@@ -400,7 +400,7 @@ static subpicture_t *FilterSub(filter_t *p_filter, mtime_t date) ...@@ -400,7 +400,7 @@ static subpicture_t *FilterSub(filter_t *p_filter, mtime_t date)
p_region = subpicture_region_New(&fmt); p_region = subpicture_region_New(&fmt);
if (!p_region) { if (!p_region) {
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); filter_DeleteSubpicture(p_filter, p_spu);
p_spu = NULL; p_spu = NULL;
goto exit; goto exit;
} }
......
...@@ -390,7 +390,7 @@ static subpicture_t *FilterSub( filter_t *p_filter, mtime_t date ) ...@@ -390,7 +390,7 @@ static subpicture_t *FilterSub( filter_t *p_filter, mtime_t date )
if( !p_region ) if( !p_region )
{ {
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 ); filter_DeleteSubpicture( p_filter, p_spu );
p_spu = NULL; p_spu = NULL;
goto exit; goto exit;
} }
......
...@@ -303,7 +303,7 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date ) ...@@ -303,7 +303,7 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
p_spu->p_region = subpicture_region_New( &fmt ); p_spu->p_region = subpicture_region_New( &fmt );
if( !p_spu->p_region ) if( !p_spu->p_region )
{ {
p_filter->pf_sub_buffer_del( p_filter, p_spu ); filter_DeleteSubpicture( p_filter, p_spu );
p_spu = NULL; p_spu = NULL;
goto out; goto out;
} }
......
...@@ -648,7 +648,7 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date ) ...@@ -648,7 +648,7 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
if( !p_region ) if( !p_region )
{ {
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 ); filter_DeleteSubpicture( p_filter, p_spu );
vlc_global_unlock( VLC_MOSAIC_MUTEX ); vlc_global_unlock( VLC_MOSAIC_MUTEX );
vlc_mutex_unlock( &p_sys->lock ); vlc_mutex_unlock( &p_sys->lock );
return p_spu; return p_spu;
......
...@@ -1131,7 +1131,7 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date ) ...@@ -1131,7 +1131,7 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
if( !p_region ) if( !p_region )
{ {
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 ); filter_DeleteSubpicture( p_filter, p_spu );
vlc_mutex_unlock( &p_sys->lock ); vlc_mutex_unlock( &p_sys->lock );
return NULL; return NULL;
} }
......
...@@ -414,7 +414,7 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date ) ...@@ -414,7 +414,7 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
p_spu->p_region = subpicture_region_New( &fmt ); p_spu->p_region = subpicture_region_New( &fmt );
if( !p_spu->p_region ) if( !p_spu->p_region )
{ {
p_filter->pf_sub_buffer_del( p_filter, p_spu ); filter_DeleteSubpicture( p_filter, p_spu );
vlc_mutex_unlock( &p_sys->lock ); vlc_mutex_unlock( &p_sys->lock );
return NULL; return NULL;
} }
......
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