diff options
author | Chris Michael <cp.michael@samsung.com> | 2017-05-03 09:22:45 -0400 |
---|---|---|
committer | Derek Foreman <derekf@osg.samsung.com> | 2017-05-05 12:53:24 -0500 |
commit | 373e4b068430f2515b4875ed08ca51118eb4108c (patch) | |
tree | 21bdbc27ffa2d31fd4fddbb6571e3a81451e96bb /src/lib/ecore_drm2/ecore_drm2_plane.c | |
parent | 0aac2db93a8ae3d47fb4904b32d6962facae7d3d (diff) |
ecore-drm2: Don't assign plane to output list if test fails
There is little point in assigning a plane to the output list if the
atomic flip test fails.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_drm2/ecore_drm2_plane.c')
-rw-r--r-- | src/lib/ecore_drm2/ecore_drm2_plane.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_plane.c b/src/lib/ecore_drm2/ecore_drm2_plane.c index 6f2666d366..6729486946 100644 --- a/src/lib/ecore_drm2/ecore_drm2_plane.c +++ b/src/lib/ecore_drm2/ecore_drm2_plane.c | |||
@@ -106,17 +106,17 @@ out: | |||
106 | plane->type = pstate->type.value; | 106 | plane->type = pstate->type.value; |
107 | plane->output = output; | 107 | plane->output = output; |
108 | 108 | ||
109 | DBG("FB %d assigned to Plane %d", fb->id, pstate->obj_id); | ||
110 | output->planes = eina_list_append(output->planes, plane); | ||
111 | |||
112 | if (!_fb_atomic_flip_test(output)) | 109 | if (!_fb_atomic_flip_test(output)) |
113 | { | 110 | { |
114 | output->planes = eina_list_remove(output->planes, plane); | ||
115 | plane->state->in_use = EINA_FALSE; | 111 | plane->state->in_use = EINA_FALSE; |
116 | free(plane); | 112 | free(plane); |
117 | 113 | ||
118 | return NULL; | 114 | return NULL; |
119 | } | 115 | } |
116 | |||
117 | DBG("FB %d assigned to Plane %d", fb->id, pstate->obj_id); | ||
118 | output->planes = eina_list_append(output->planes, plane); | ||
119 | |||
120 | return plane; | 120 | return plane; |
121 | } | 121 | } |
122 | 122 | ||