diff --git a/clutter/clutter/clutter-frame-clock.c b/clutter/clutter/clutter-frame-clock.c index 8d6f662f1..d92201713 100644 --- a/clutter/clutter/clutter-frame-clock.c +++ b/clutter/clutter/clutter-frame-clock.c @@ -690,6 +690,7 @@ static void clutter_frame_clock_dispatch (ClutterFrameClock *frame_clock, int64_t time_us) { + const ClutterFrameListenerIface *iface = frame_clock->listener.iface; int64_t frame_count; ClutterFrameResult result; int64_t ideal_dispatch_time_us, lateness_us; @@ -729,11 +730,11 @@ clutter_frame_clock_dispatch (ClutterFrameClock *frame_clock, frame_count = frame_clock->frame_count++; COGL_TRACE_BEGIN (ClutterFrameClockEvents, "Frame Clock (before frame)"); - if (frame_clock->listener.iface->before_frame) + if (iface->before_frame) { - frame_clock->listener.iface->before_frame (frame_clock, - frame_count, - frame_clock->listener.user_data); + iface->before_frame (frame_clock, + frame_count, + frame_clock->listener.user_data); } COGL_TRACE_END (ClutterFrameClockEvents); @@ -744,9 +745,9 @@ clutter_frame_clock_dispatch (ClutterFrameClock *frame_clock, COGL_TRACE_END (ClutterFrameClockTimelines); COGL_TRACE_BEGIN (ClutterFrameClockFrame, "Frame Clock (frame)"); - result = frame_clock->listener.iface->frame (frame_clock, - frame_count, - frame_clock->listener.user_data); + result = iface->frame (frame_clock, + frame_count, + frame_clock->listener.user_data); COGL_TRACE_END (ClutterFrameClockFrame); switch (frame_clock->state)