Ejemplo n.º 1
0
static void uninit(void)
{
    if (myximage)
        freeMyXImage();

#ifdef CONFIG_XF86VM
    vo_vm_close();
#endif

    zoomFlag = 0;
    vo_x11_uninit();

    sws_freeContext(swsContext);
}
Ejemplo n.º 2
0
Archivo: vo_x11.c Proyecto: kax4/mpv
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);
}
Ejemplo n.º 3
0
Archivo: vo_xv.c Proyecto: kax4/mpv
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);
}