A hot-plug/re-plug event means we remove the black curtain with it the
ivi_surface that hangs out of it, so verify it before assuming there's
one installed.
Bug-AGL: SPEC-4705
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: Iad53ae34b4e15b5962cf984978a65c344aac9200
bool
output_has_black_curtain(struct ivi_output *output)
{
- return (output->fullscreen_view.fs->view &&
+ return (output->fullscreen_view.fs &&
+ output->fullscreen_view.fs->view &&
output->fullscreen_view.fs->view->is_mapped &&
output->fullscreen_view.fs->view->surface->is_mapped);
}