dynamicoverlay: use filter_NewSubpicture()
[vlc.git] / modules / video_filter / dynamicoverlay / dynamicoverlay.c
index ab8129a..3189808 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;