(It still crashes on resize nevertheless)
xcb_flush (p_sys->conn);
/* Allocate picture buffers */
xcb_flush (p_sys->conn);
/* Allocate picture buffers */
+ I_OUTPUTPICTURES = 0;
+ for (size_t index = 0; I_OUTPUTPICTURES < 2; index++)
- picture_t *pic = vout->p_picture + I_OUTPUTPICTURES;
+ picture_t *pic = vout->p_picture + index;
+ if (index > sizeof (vout->p_picture) / sizeof (pic))
+ break;
+ if (pic->i_status != FREE_PICTURE)
+ continue;
if (PictureInit (vout, pic))
break;
PP_OUTPUTPICTURE[I_OUTPUTPICTURES++] = pic;
}
if (PictureInit (vout, pic))
break;
PP_OUTPUTPICTURE[I_OUTPUTPICTURES++] = pic;
}
- while (I_OUTPUTPICTURES < 2);