[vlc-commits] vmem: remove redundant pool callback
Rémi Denis-Courmont
git at videolan.org
Mon Dec 10 20:10:34 CET 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Dec 10 20:34:42 2018 +0200| [07e8afd265fd74f4c9f8be06dbdbc18e3b163724] | committer: Rémi Denis-Courmont
vmem: remove redundant pool callback
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=07e8afd265fd74f4c9f8be06dbdbc18e3b163724
---
modules/video_output/vmem.c | 17 -----------------
1 file changed, 17 deletions(-)
diff --git a/modules/video_output/vmem.c b/modules/video_output/vmem.c
index 9edfab51eb..210400294c 100644
--- a/modules/video_output/vmem.c
+++ b/modules/video_output/vmem.c
@@ -34,7 +34,6 @@
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_vout_display.h>
-#include <vlc_picture_pool.h>
/*****************************************************************************
* Module descriptor
@@ -89,8 +88,6 @@ typedef struct
/* NOTE: the callback prototypes must match those of LibVLC */
struct vout_display_sys_t {
- picture_pool_t *pool;
-
void *opaque;
void *pic_opaque;
void *(*lock)(void *sys, void **plane);
@@ -105,7 +102,6 @@ struct vout_display_sys_t {
typedef unsigned (*vlc_format_cb)(void **, char *, unsigned *, unsigned *,
unsigned *, unsigned *);
-static picture_pool_t *Pool (vout_display_t *, unsigned);
static void Prepare(vout_display_t *, picture_t *, subpicture_t *, vlc_tick_t);
static void Display(vout_display_t *, picture_t *);
static int Control(vout_display_t *, int, va_list);
@@ -135,7 +131,6 @@ static int Open(vout_display_t *vd, const vout_display_cfg_t *cfg,
sys->display = var_InheritAddress(vd, "vmem-display");
sys->cleanup = var_InheritAddress(vd, "vmem-cleanup");
sys->opaque = var_InheritAddress(vd, "vmem-data");
- sys->pool = NULL;
/* Define the video format */
video_format_t fmt;
@@ -213,7 +208,6 @@ static int Open(vout_display_t *vd, const vout_display_cfg_t *cfg,
*fmtp = fmt;
vd->sys = sys;
- vd->pool = Pool;
vd->prepare = Prepare;
vd->display = Display;
vd->control = Control;
@@ -228,20 +222,9 @@ static void Close(vout_display_t *vd)
if (sys->cleanup)
sys->cleanup(sys->opaque);
- 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 == NULL)
- sys->pool = picture_pool_NewFromFormat(&vd->fmt, count);
- return sys->pool;
-}
-
static void Prepare(vout_display_t *vd, picture_t *pic, subpicture_t *subpic,
vlc_tick_t date)
{
More information about the vlc-commits
mailing list