static void uninit(void) { if (myximage) freeMyXImage(); #ifdef CONFIG_XF86VM vo_vm_close(); #endif zoomFlag = 0; vo_x11_uninit(); sws_freeContext(swsContext); }
static void uninit(struct vo *vo) { struct priv *p = vo->priv; if (p->myximage) freeMyXImage(p); #ifdef CONFIG_XF86VM vo_vm_close(vo); #endif p->zoomFlag = 0; vo_x11_uninit(vo); sws_freeContext(p->swsContext); }
static void uninit(struct vo *vo) { struct xvctx *ctx = vo->priv; int i; ctx->visible_buf = -1; if (ctx->ai) XvFreeAdaptorInfo(ctx->ai); ctx->ai = NULL; if (ctx->fo) { XFree(ctx->fo); ctx->fo = NULL; } for (i = 0; i < ctx->total_buffers; i++) deallocate_xvimage(vo, i); #ifdef CONFIG_XF86VM if (ctx->mode_switched) vo_vm_close(vo); #endif // uninit() shouldn't get called unless initialization went past vo_init() vo_x11_uninit(vo); }