Commit 25d33b29 authored by Laurent Aimar's avatar Laurent Aimar
Browse files

Fixed vout display module wrapper with locked/unlocked picture pool.

parent c60c9a9e
......@@ -512,8 +512,15 @@ static void Display(vout_thread_t *vout, picture_t *picture)
vout_display_Display(vd, direct);
if (!sys->use_dr)
if (sys->use_dr) {
for (int i = 0; i < picture->i_planes; i++) {
picture->p[i].p_pixels = direct->p[i].p_pixels;
picture->p[i].i_pitch = direct->p[i].i_pitch;
picture->p[i].i_lines = direct->p[i].i_lines;
}
} else {
picture->p_sys->direct = NULL;
}
}
static void VoutGetDisplayCfg(vout_thread_t *vout, vout_display_cfg_t *cfg, const char *title)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment