Commit 39698bf7 authored by Felix Paul Kühne's avatar Felix Paul Kühne

caopengllayer: don't pass invalid pics to the OpenGL context

parent 064b40c2
...@@ -256,6 +256,11 @@ static void PictureRender (vout_display_t *vd, picture_t *pic, subpicture_t *sub ...@@ -256,6 +256,11 @@ static void PictureRender (vout_display_t *vd, picture_t *pic, subpicture_t *sub
{ {
vout_display_sys_t *sys = vd->sys; vout_display_sys_t *sys = vd->sys;
if (pic == NULL) {
msg_Warn(vd, "invalid pic, skipping frame");
return;
}
@synchronized (sys->cgLayer) { @synchronized (sys->cgLayer) {
vout_display_opengl_Prepare(sys->vgl, pic, subpicture); vout_display_opengl_Prepare(sys->vgl, pic, subpicture);
} }
......
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