X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fvideo_output%2Fxcb%2Fxvideo.c;h=11ea8b586957ce0cc2ed3a4999995e96db8c1895;hb=4d4f701e03e4b861f38249f001bec0ba7d286de1;hp=ceffaf979cb9614d71f391d53facd606b01dc7e0;hpb=ec6a7b8ec1fc9f070d1d5242836b1d643f9f2dd8;p=vlc diff --git a/modules/video_output/xcb/xvideo.c b/modules/video_output/xcb/xvideo.c index ceffaf979c..11ea8b5869 100644 --- a/modules/video_output/xcb/xvideo.c +++ b/modules/video_output/xcb/xvideo.c @@ -340,7 +340,11 @@ FindFormat (vout_thread_t *vout, vlc_fourcc_t chroma, xcb_xv_port_t port, xcb_connection_t *conn = vout->p_sys->conn; const xcb_xv_image_format_info_t *f, *end; +#ifndef XCB_XV_OLD f = xcb_xv_list_image_formats_format (list); +#else + f = (xcb_xv_image_format_info_t *) (list + 1); +#endif end = f + xcb_xv_list_image_formats_format_length (list); for (; f < end; f++) { @@ -456,9 +460,9 @@ found_adaptor: if (pic->i_status != FREE_PICTURE) continue; - vout_InitPicture (vout, pic, vout->output.i_chroma, - att->width, att->height, - vout->fmt_in.i_aspect); + picture_Setup (pic, vout->output.i_chroma, + att->width, att->height, + vout->fmt_in.i_aspect); if (PictureAlloc (vout, pic, att->data_size, p_sys->shm ? p_sys->conn : NULL)) break;