[vlc-commits] yuv: remove redundant pool callback
Rémi Denis-Courmont
git at videolan.org
Mon Dec 10 20:10:23 CET 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Dec 10 20:34:42 2018 +0200| [28c8954b61a227cbad98194de28c85b400a4e5d5] | committer: Rémi Denis-Courmont
yuv: remove redundant pool callback
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=28c8954b61a227cbad98194de28c85b400a4e5d5
---
modules/video_output/yuv.c | 16 ----------------
1 file changed, 16 deletions(-)
diff --git a/modules/video_output/yuv.c b/modules/video_output/yuv.c
index 52b337581a..30d2c3a493 100644
--- a/modules/video_output/yuv.c
+++ b/modules/video_output/yuv.c
@@ -32,7 +32,6 @@
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_vout_display.h>
-#include <vlc_picture_pool.h>
#include <vlc_fs.h>
/*****************************************************************************
@@ -77,7 +76,6 @@ vlc_module_end()
*****************************************************************************/
/* */
-static picture_pool_t *Pool (vout_display_t *, unsigned);
static void Display(vout_display_t *, picture_t *);
static int Control(vout_display_t *, int, va_list);
@@ -88,8 +86,6 @@ struct vout_display_sys_t {
FILE *f;
bool is_first;
bool is_yuv4mpeg2;
-
- picture_pool_t *pool;
};
/* */
@@ -105,7 +101,6 @@ static int Open(vout_display_t *vd, const vout_display_cfg_t *cfg,
sys->is_first = false;
sys->is_yuv4mpeg2 = var_InheritBool(vd, CFG_PREFIX "yuv4mpeg2");
- sys->pool = NULL;
/* */
char *psz_fcc = var_InheritString(vd, CFG_PREFIX "chroma");
@@ -156,7 +151,6 @@ static int Open(vout_display_t *vd, const vout_display_cfg_t *cfg,
/* */
*fmtp = fmt;
- vd->pool = Pool;
vd->prepare = NULL;
vd->display = Display;
vd->control = Control;
@@ -170,8 +164,6 @@ static void Close(vout_display_t *vd)
{
vout_display_sys_t *sys = vd->sys;
- if (sys->pool)
- picture_pool_Release(sys->pool);
fclose(sys->f);
free(sys);
}
@@ -179,14 +171,6 @@ static void Close(vout_display_t *vd)
/*****************************************************************************
*
*****************************************************************************/
-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 Display(vout_display_t *vd, picture_t *picture)
{
vout_display_sys_t *sys = vd->sys;
More information about the vlc-commits
mailing list