X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fvideo_filter%2Flogo.c;h=37e51f26e70ee13b2665c4b8a2b2d30119be9088;hb=688f0a8d8913f20ac5d3e27bf4f2bbe35c9f5de7;hp=541fc196a14a1063d95cf27b08f9514b328a4f51;hpb=5d3c921b102e46e416c8e1169d8ac604a8654ac1;p=vlc diff --git a/modules/video_filter/logo.c b/modules/video_filter/logo.c index 541fc196a1..37e51f26e7 100644 --- a/modules/video_filter/logo.c +++ b/modules/video_filter/logo.c @@ -331,6 +331,8 @@ static int Create( vlc_object_t *p_this ) if( !p_logo_list->psz_filename || !*p_logo_list->psz_filename ) { msg_Err( p_vout, "logo file not specified" ); + free( p_logo_list->psz_filename ); + free( p_sys ); return VLC_EGENERIC; } @@ -819,7 +821,7 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date ) p_pic = p_logo->p_pic; /* Allocate the subpicture internal data. */ - p_spu = p_filter->pf_sub_buffer_new( p_filter ); + p_spu = filter_NewSubpicture( p_filter ); if( !p_spu ) { vlc_mutex_unlock( &p_logo_list->lock );