Ticket #1557: mplayer-xv-tearing.patch

File mplayer-xv-tearing.patch, 497 bytes (added by syscrash2k@…, 17 years ago)

Patch to fix tearing

  • libvo/vo_xv.c

    diff --git a/libvo/vo_xv.c b/libvo/vo_xv.c
    index 1085f51..0458613 100644
    a b static void flip_page(struct vo *vo)  
    479479    if (ctx->num_buffers > 1) {
    480480        ctx->current_buf = vo_directrendering ? 0 : ((ctx->current_buf + 1) %
    481481                                                     ctx->num_buffers);
    482         XFlush(vo->x11->display);
     482        XSync(vo->x11->display, False);
    483483    } else
    484484        XSync(vo->x11->display, False);
    485485    return;