libweston: Init weston_output's 'destroy_signal' before timeline has a chance to...
authorMarius Vlad <marius.vlad@collabora.com>
Mon, 4 Nov 2019 15:53:46 +0000 (17:53 +0200)
committerMarius Vlad <marius.vlad@collabora.com>
Tue, 5 Nov 2019 11:58:36 +0000 (13:58 +0200)
commit3a2f829983801d2273277c8b6021cd0543d0e26e
tree6ae3f185565b90664874615d49962c478931521a
parent91dffa37a6fc3820abf32bb58e8b1362f02497ff
libweston: Init weston_output's 'destroy_signal' before timeline has a chance to emit a
timeline subscription

When subscribing over the command line to the 'timeline' scope we hit
the situation where we could emit a timeline message but without the
weston_output object being (fully) enabled.  The timeline subscription
object requires to install its own callback on the 'destroy_signal' but
at that time, the 'destroy_signal' is not initialized.

This moves 'destroy_signal' initialization before timeline has a chance
to emit a timeline subscription message for that weston_output.

While at it, move also 'frame_signal' initialization before any function
call to keep them nicely organized.

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
libweston/compositor.c