The maximum number of surfaces it will allow is now 128, but the actual value
used is configured by the core (around 20-30 when DR is used, a few otherwise).
add_shortcut ("xvideo")
vlc_module_end ()
add_shortcut ("xvideo")
vlc_module_end ()
-#define MAX_PICTURES (VOUT_MAX_PICTURES)
+#define MAX_PICTURES (128)
struct vout_display_sys_t
{
struct vout_display_sys_t
{
static picture_pool_t *Pool (vout_display_t *vd, unsigned requested_count)
{
vout_display_sys_t *p_sys = vd->sys;
static picture_pool_t *Pool (vout_display_t *vd, unsigned requested_count)
{
vout_display_sys_t *p_sys = vd->sys;
unsigned count;
picture_t *pic_array[MAX_PICTURES];
unsigned count;
picture_t *pic_array[MAX_PICTURES];
- for (count = 0; count < MAX_PICTURES; count++)
+ for (count = 0; count < requested_count; count++)
+ if (count >= MAX_PICTURES)
+ break;
picture_resource_t *res = &p_sys->resource[count];
for (int i = 0; i < __MIN (p_sys->att->num_planes, PICTURE_PLANE_MAX); i++)
picture_resource_t *res = &p_sys->resource[count];
for (int i = 0; i < __MIN (p_sys->att->num_planes, PICTURE_PLANE_MAX); i++)