[vlc-commits] dynamicoverlay: use filter_NewSubpicture()

Rémi Denis-Courmont git at videolan.org
Mon Jul 28 23:55:13 CEST 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jul 28 19:56:23 2014 +0300| [81c9e32f79fd2f3fb88fcb5c97615e1f35fad0f0] | committer: Rémi Denis-Courmont

dynamicoverlay: use filter_NewSubpicture()

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=81c9e32f79fd2f3fb88fcb5c97615e1f35fad0f0
---

 modules/video_filter/dynamicoverlay/dynamicoverlay.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/modules/video_filter/dynamicoverlay/dynamicoverlay.c b/modules/video_filter/dynamicoverlay/dynamicoverlay.c
index ab8129a..3189808 100644
--- a/modules/video_filter/dynamicoverlay/dynamicoverlay.c
+++ b/modules/video_filter/dynamicoverlay/dynamicoverlay.c
@@ -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;



More information about the vlc-commits mailing list