]> git.sesse.net Git - vlc/blobdiff - modules/video_output/xcb/xvideo.c
Ahem
[vlc] / modules / video_output / xcb / xvideo.c
index f460c4afad8f3cd2ebd0c42e30e3634ef417d269..11ea8b586957ce0cc2ed3a4999995e96db8c1895 100644 (file)
@@ -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++)
     {