[krh/weston/next 8/8] util: Check result of weston_surface_animation_run.
John Kåre Alsaker
john.kare.alsaker at gmail.com
Fri Oct 12 03:32:03 PDT 2012
---
src/util.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/util.c b/src/util.c
index 4390e2e..f18281c 100644
--- a/src/util.c
+++ b/src/util.c
@@ -265,6 +265,9 @@ weston_slide_run(struct weston_surface *surface, float start, float stop,
animation = weston_surface_animation_run(surface, start, stop,
slide_frame, done, data);
+ if(!animation)
+ return NULL;
+
animation->spring.friction = 900;
animation->spring.k = 300;
--
1.7.12.2
More information about the wayland-devel
mailing list