[vlc-commits] vout: remove useless callback

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:50:49 2014 +0300| [f5766175acd20908cc827b1eb3f9f82e1dd1dc61] | committer: Rémi Denis-Courmont

vout: remove useless callback

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

 src/video_output/display.c |    9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/src/video_output/display.c b/src/video_output/display.c
index 4b85f0c..3b197b8 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -79,12 +79,6 @@ static int  FilterAllocationInit(filter_t *filter, void *vd)
 
     return VLC_SUCCESS;
 }
-static void FilterAllocationClean(filter_t *filter)
-{
-    filter->pf_video_buffer_new = NULL;
-    filter->pf_video_buffer_del = NULL;
-    filter->p_owner             = NULL;
-}
 
 /*****************************************************************************
  *
@@ -466,8 +460,7 @@ static void VoutDisplayCreateRender(vout_display_t *vd)
     msg_Dbg(vd, "A filter to adapt decoder to display is needed");
 
     osys->filters = filter_chain_New(vd, "video filter2", false,
-                                     FilterAllocationInit,
-                                     FilterAllocationClean, vd);
+                                     FilterAllocationInit, NULL, vd);
     assert(osys->filters); /* TODO critical */
 
     /* */



More information about the vlc-commits mailing list