* All pictures must already be released to the pool. The pool will then
* released them.
*/
-VLC_API void picture_pool_Delete( picture_pool_t * );
+VLC_API void picture_pool_Release( picture_pool_t * );
/**
* It retreives a picture_t from a pool.
}
if (p_sys->pool)
- picture_pool_Delete(p_sys->pool);
+ picture_pool_Release(p_sys->pool);
free(p_sys);
DeinitOmxCore();
}
mmal_component_release(sys->component);
if (sys->picture_pool)
- picture_pool_Delete(sys->picture_pool);
+ picture_pool_Release(sys->picture_pool);
vlc_mutex_destroy(&sys->mutex);
free(sys->pictures);
mmal_component_release(sys->component);
if (sys->picture_pool)
- picture_pool_Delete(sys->picture_pool);
+ picture_pool_Release(sys->picture_pool);
else
for (i = 0; i < sys->num_buffers; ++i)
if (sys->pictures[i])
if (sys->current != NULL)
picture_Release(sys->current);
- picture_pool_Delete(pool);
+ picture_pool_Release(pool);
}
static picture_pool_t *Pool(vout_display_t *vd, unsigned requested_count)
vout_display_sys_t *sys = vd->sys;
if (sys->pool)
- picture_pool_Delete(sys->pool);
+ picture_pool_Release(sys->pool);
aa_close(sys->aa_context);
free(sys);
}
case VOUT_DISPLAY_RESET_PICTURES:
if (sys->pool)
- picture_pool_Delete(sys->pool);
+ picture_pool_Release(sys->pool);
sys->pool = NULL;
vd->fmt.i_width = aa_imgwidth(sys->aa_context);
vout_display_t *vd = (vout_display_t *)p_this;
vout_display_sys_t *sys = vd->sys;
- picture_pool_Delete(sys->pool);
+ picture_pool_Release(sys->pool);
if (sys->window)
sys->native_window.winRelease(sys->window);
dlclose(sys->p_library);
vout_display_t *vd = (vout_display_t *)p_this;
vout_display_sys_t *sys = vd->sys;
- picture_pool_Delete(sys->pool);
+ picture_pool_Release(sys->pool);
if (sys->window)
sys->native_window.winRelease(sys->window);
dlclose(sys->p_library);
error:
if (sys) {
if (sys->pool)
- picture_pool_Delete(sys->pool);
+ picture_pool_Release(sys->pool);
if (sys->dither)
cucul_free_dither(sys->dither);
if (sys->dp)
vout_display_sys_t *sys = vd->sys;
if (sys->pool)
- picture_pool_Delete(sys->pool);
+ picture_pool_Release(sys->pool);
if (sys->dither)
cucul_free_dither(sys->dither);
caca_free_display(sys->dp);
vout_display_sys_t *sys = vd->sys;
if (sys->pool)
- picture_pool_Delete(sys->pool);
+ picture_pool_Release(sys->pool);
if (sys->pic_nosignal)
picture_Release(sys->pic_nosignal);
vout_display_sys_t *sys = vd->sys;
if (sys->pool)
- picture_pool_Delete(sys->pool);
+ picture_pool_Release(sys->pool);
IDirectFBSurface *primary = sys->primary;
if (primary)
vout_display_sys_t *sys = vd->sys;
if (sys->pool)
- picture_pool_Delete(sys->pool);
+ picture_pool_Release(sys->pool);
if (!sys->is_hw_accel && sys->picture)
picture_Release(sys->picture);
DosWaitThread( &sys->tid, DCWW_WAIT );
if( sys->pool )
- picture_pool_Delete( sys->pool );
+ picture_pool_Release( sys->pool );
DosCloseEventSem( sys->ack_event );
D2D_DestroyRenderTarget(vd);
if (vd->sys->pool)
- picture_pool_Delete(vd->sys->pool);
+ picture_pool_Release(vd->sys->pool);
CommonClean(vd);
IDirect3DSurface9_Release(picsys->surface);
if (picsys->fallback)
picture_Release(picsys->fallback);
- picture_pool_Delete(sys->pool);
+ picture_pool_Release(sys->pool);
}
sys->pool = NULL;
}
if (sys->pool) {
DirectXDestroyPictureResource(vd);
- picture_pool_Delete(sys->pool);
+ picture_pool_Release(sys->pool);
}
sys->pool = NULL;
}
vout_display_sys_t *sys = vd->sys;
if (sys->pool)
- picture_pool_Delete(sys->pool);
+ picture_pool_Release(sys->pool);
sys->pool = NULL;
if (sys->off_dc)
vlc_gl_Unlock(vgl->gl);
}
if (vgl->pool)
- picture_pool_Delete(vgl->pool);
+ picture_pool_Release(vgl->pool);
free(vgl);
}
vout_display_sys_t *sys = vd->sys;
if (sys->pool)
- picture_pool_Delete(sys->pool);
+ picture_pool_Release(sys->pool);
if (sys->overlay) {
SDL_LockYUVOverlay(sys->overlay);
/* */
if (sys->pool)
- picture_pool_Delete(sys->pool);
+ picture_pool_Release(sys->pool);
sys->pool = NULL;
vout_display_PlacePicture(&sys->place, &vd->source, vd->cfg, !sys->overlay);
vout_display_sys_t *sys = vd->sys;
if (sys->pool)
- picture_pool_Delete(sys->pool);
+ picture_pool_Release(sys->pool);
free(sys);
}
if (sys->cleanup)
sys->cleanup(sys->opaque);
- picture_pool_Delete(sys->pool);
+ picture_pool_Release(sys->pool);
free(sys);
}
if (sys->pool == NULL)
return;
- picture_pool_Delete(sys->pool);
+ picture_pool_Release(sys->pool);
sys->pool = NULL;
}
for (unsigned i = 0; i < MAX_PICTURES; i++)
xcb_shm_detach (sys->conn, sys->seg_base + i);
- picture_pool_Delete (sys->pool);
+ picture_pool_Release (sys->pool);
sys->pool = NULL;
}
vout_display_sys_t *p_sys = vd->sys;
if (p_sys->pool)
- picture_pool_Delete (p_sys->pool);
+ picture_pool_Release (p_sys->pool);
/* show the default cursor */
xcb_change_window_attributes (p_sys->conn, p_sys->embed->handle.xid, XCB_CW_CURSOR,
vout_display_sys_t *sys = vd->sys;
if (sys->pool)
- picture_pool_Delete(sys->pool);
+ picture_pool_Release(sys->pool);
fclose(sys->f);
free(sys);
}
picture_New
picture_NewFromFormat
picture_NewFromResource
-picture_pool_Delete
+picture_pool_Release
picture_pool_Get
picture_pool_GetSize
picture_pool_New
vlc_mutex_t lock;
};
-static void picture_pool_Release(picture_pool_t *pool)
+void picture_pool_Release(picture_pool_t *pool)
{
bool destroy;
return NULL;
}
-void picture_pool_Delete(picture_pool_t *pool)
-{
- picture_pool_Release(pool);
-}
-
picture_t *picture_pool_Get(picture_pool_t *pool)
{
vlc_mutex_lock(&pool->lock);
for (unsigned i = 0; i < PICTURES; i++)
picture_Release(pics[i]);
- picture_pool_Delete(reserve);
- picture_pool_Delete(pool);
+ picture_pool_Release(reserve);
+ picture_pool_Release(pool);
if (zombie)
for (unsigned i = 0; i < PICTURES; i++)
reserve = picture_pool_Reserve(pool, PICTURES / 2);
assert(reserve != NULL);
- picture_pool_Delete(reserve);
- picture_pool_Delete(pool);
+ picture_pool_Release(reserve);
+ picture_pool_Release(pool);
test(false);
test(true);
video_splitter_Delete(splitter);
if (sys->pool)
- picture_pool_Delete(sys->pool);
+ picture_pool_Release(sys->pool);
/* */
for (int i = 0; i < sys->count; i++)
if (vout->p->private_pool != NULL) {
count = picture_pool_GetSize(vout->p->private_pool);
- picture_pool_Delete(vout->p->private_pool);
+ picture_pool_Release(vout->p->private_pool);
}
leaks = picture_pool_Reset(vout->p->decoder_pool);
assert(!sys->display.filtered);
if (sys->private_pool)
- picture_pool_Delete(sys->private_pool);
+ picture_pool_Release(sys->private_pool);
if (sys->decoder_pool != sys->display_pool)
- picture_pool_Delete(sys->decoder_pool);
+ picture_pool_Release(sys->decoder_pool);
}
/*****************************************************************************