libweston/compositor: Place timeline recording after checking if stamp is valid
authorMarius Vlad <marius-cristian.vlad@nxp.com>
Tue, 6 Mar 2018 16:56:23 +0000 (18:56 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Thu, 15 Mar 2018 12:28:02 +0000 (14:28 +0200)
commitdf9278aea75282c67c80c78c667a8af73ad21c4e
treeb7e564f5085aacacf866d503443e91c98a0a66a4
parentd1510b4f40aad09372e9721d91d7df41fdaece71
libweston/compositor: Place timeline recording after checking if stamp is valid

The timestamp could be either NULL if there's no mode set, or 0 when output gets
awaken. It either crashes weston or we get vblanks at [0, 0] for that output.

Signed-off-by: Marius Vlad <marius-cristian.vlad@nxp.com>
CC: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
[Pekka: note, most start_repaint_loop pass in current time, not 0]
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
libweston/compositor.c