[vlc-commits] dummy: remove redundant pool callback

Rémi Denis-Courmont git at videolan.org
Mon Dec 10 20:10:25 CET 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Dec 10 20:34:42 2018 +0200| [074785a3ce594ac199a14c4d388a49b8abaf9d86] | committer: Rémi Denis-Courmont

dummy: remove redundant pool callback

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

 modules/video_output/vdummy.c | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/modules/video_output/vdummy.c b/modules/video_output/vdummy.c
index 0d54b775aa..81a0792d2d 100644
--- a/modules/video_output/vdummy.c
+++ b/modules/video_output/vdummy.c
@@ -68,9 +68,7 @@ vlc_module_end ()
  * Local prototypes
  *****************************************************************************/
 struct vout_display_sys_t {
-    picture_pool_t *pool;
 };
-static picture_pool_t *Pool(vout_display_t *, unsigned count);
 static void            DisplayStat(vout_display_t *, picture_t *);
 static int             Control(vout_display_t *, int, va_list);
 
@@ -85,7 +83,6 @@ static int Open(vout_display_t *vd, video_format_t *fmt,
     vd->sys = sys = calloc(1, sizeof(*sys));
     if (!sys)
         return VLC_EGENERIC;
-    sys->pool = NULL;
 
     /* p_vd->info is not modified */
 
@@ -98,7 +95,6 @@ static int Open(vout_display_t *vd, video_format_t *fmt,
         }
         free(chroma);
     }
-    vd->pool    = Pool;
     vd->prepare = NULL;
     vd->display = display;
     vd->control = Control;
@@ -124,19 +120,9 @@ static void Close(vout_display_t *vd)
 {
     vout_display_sys_t *sys = vd->sys;
 
-    if (sys->pool)
-        picture_pool_Release(sys->pool);
     free(sys);
 }
 
-static picture_pool_t *Pool(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 DisplayStat(vout_display_t *vd, picture_t *picture)
 {
     plane_t *p = picture->p;



More information about the vlc-commits mailing list