[vlc-commits] splitter: remove useless pool

Rémi Denis-Courmont git at videolan.org
Wed Dec 26 20:56:18 CET 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Dec 26 19:09:19 2018 +0200| [eda083533eb6b103549235d5ec1d3ea9d0310e24] | committer: Rémi Denis-Courmont

splitter: remove useless pool

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

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

diff --git a/src/video_output/display.c b/src/video_output/display.c
index c116ce1e7d..8fe518762e 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -1052,7 +1052,6 @@ vout_display_t *vout_NewDisplay(vout_thread_t *vout,
  *
  *****************************************************************************/
 struct vout_display_sys_t {
-    picture_pool_t   *pool;
     video_splitter_t *splitter;
 
     /* */
@@ -1084,13 +1083,6 @@ static void SplitterEvent(vout_display_t *vd, int event, va_list args)
     }
 }
 
-static picture_pool_t *SplitterPool(vout_display_t *vd, unsigned count)
-{
-    vout_display_sys_t *sys = vd->sys;
-    if (!sys->pool)
-        sys->pool = picture_pool_NewFromFormat(&vd->fmt, count);
-    return sys->pool;
-}
 static void SplitterPrepare(vout_display_t *vd,
                             picture_t *picture,
                             subpicture_t *subpicture, vlc_tick_t date)
@@ -1165,9 +1157,6 @@ static void SplitterClose(vout_display_t *vd)
     video_splitter_t *splitter = sys->splitter;
     video_splitter_Delete(splitter);
 
-    if (sys->pool)
-        picture_pool_Release(sys->pool);
-
     /* */
     for (int i = 0; i < sys->count; i++) {
         vout_window_t *wnd = sys->display[i]->cfg->window;
@@ -1206,9 +1195,8 @@ vout_display_t *vout_NewSplitter(vout_thread_t *vout,
     if (!sys->picture )
         abort();
     sys->splitter = splitter;
-    sys->pool     = NULL;
 
-    wrapper->pool    = SplitterPool;
+    wrapper->pool    = NULL;
     wrapper->prepare = SplitterPrepare;
     wrapper->display = SplitterDisplay;
     wrapper->control = SplitterControl;



More information about the vlc-commits mailing list