summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm2
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-04-10 16:09:04 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-04-10 16:49:47 +0100
commite2b56fe71d467e897b46d0930aacc34f03c7178c (patch)
treec14901dc6f093f56fd767152d5f3e2d5ba211f7b /src/lib/ecore_drm2
parent7b483cb54853ff472953446d7a29c52a2a672152 (diff)
ecore drm2 - handle possible NULL fb when doing a flip
Diffstat (limited to 'src/lib/ecore_drm2')
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_fb.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_fb.c b/src/lib/ecore_drm2/ecore_drm2_fb.c
index 017f981693..e8f6c16762 100644
--- a/src/lib/ecore_drm2/ecore_drm2_fb.c
+++ b/src/lib/ecore_drm2/ecore_drm2_fb.c
@@ -510,6 +510,16 @@ _fb_flip(Ecore_Drm2_Output *output)
510 int ret = 0; 510 int ret = 0;
511 511
512 fb = output->prep.fb; 512 fb = output->prep.fb;
513 if (!fb)
514 {
515 fb = output->pending.fb;
516 ERR("Trying to flip NULL fb - fallback to pending fb");
517 }
518 if (!fb)
519 {
520 ERR("Pending fb is also NULL, give up flipping");
521 return ret;
522 }
513 523
514 if ((!output->current.fb) || 524 if ((!output->current.fb) ||
515 (output->current.fb->strides[0] != fb->strides[0])) 525 (output->current.fb->strides[0] != fb->strides[0]))