Commit 0be7b45d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont Committed by Rafaël Carré

vout: remove the dummy display pool

With the previous commit, the vout wrapper's display pool is no longer
used ever if direct rendering is not in use. Removing it saves one
picture buffer.
Signed-off-by: default avatarRafaël Carré <funman@videolan.org>
parent 39da8edd
......@@ -113,16 +113,9 @@ static void NoDrInit(vout_thread_t *vout)
if (sys->display.use_dr)
sys->display_pool = vout_display_Pool(sys->display.vd, 3);
else
//sys->display_pool = picture_pool_Reserve(sys->decoder_pool, DISPLAY_PICTURE_COUNT);
sys->display_pool = picture_pool_NewFromFormat(&sys->display.vd->source, DISPLAY_PICTURE_COUNT);
sys->display_pool = NULL;
}
static void NoDrClean(vout_thread_t *vout)
{
vout_thread_sys_t *sys = vout->p;
if (!sys->display.use_dr)
picture_pool_Delete(sys->display_pool);
}
int vout_InitWrapper(vout_thread_t *vout)
{
vout_thread_sys_t *sys = vout->p;
......@@ -176,10 +169,8 @@ void vout_EndWrapper(vout_thread_t *vout)
if (sys->private_pool)
picture_pool_Delete(sys->private_pool);
if (sys->decoder_pool != sys->display_pool) {
NoDrClean(vout);
if (sys->decoder_pool != sys->display_pool)
picture_pool_Delete(sys->decoder_pool);
}
}
/*****************************************************************************
......@@ -194,8 +185,6 @@ void vout_ManageWrapper(vout_thread_t *vout)
vout_ManageDisplay(vd, !sys->display.use_dr || reset_display_pool);
if (reset_display_pool) {
NoDrClean(vout);
sys->display.use_dr = !vout_IsDisplayFiltered(vd);
NoDrInit(vout);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment