]> git.sesse.net Git - vlc/blobdiff - modules/video_filter/logo.c
Don't print a message a malloc failed.
[vlc] / modules / video_filter / logo.c
index 541fc196a14a1063d95cf27b08f9514b328a4f51..37e51f26e70ee13b2665c4b8a2b2d30119be9088 100644 (file)
@@ -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 );