]> git.sesse.net Git - vlc/commitdiff
dynamicoverlay: use filter_NewSubpicture()
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 28 Jul 2014 16:56:23 +0000 (19:56 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 28 Jul 2014 18:37:47 +0000 (21:37 +0300)
modules/video_filter/dynamicoverlay/dynamicoverlay.c

index ab8129a817e764e76ae7799f885ffce5cba09ad5..3189808a582c1c54181d57ed179889125d6de161 100644 (file)
@@ -340,12 +340,9 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
     subpicture_t *p_spu = NULL;
     overlay_t *p_overlay = NULL;
 
-    p_spu = p_filter->pf_sub_buffer_new( p_filter );
+    p_spu = filter_NewSubpicture( p_filter );
     if( !p_spu )
-    {
-        msg_Err( p_filter, "cannot allocate subpicture" );
         return NULL;
-    }
 
     p_spu->b_absolute = true;
     p_spu->i_start = date;