Fix mutex hang in colord on output removal
authorOlivier Fourdan <ofourdan@redhat.com>
Thu, 8 Jan 2015 14:40:29 +0000 (15:40 +0100)
committerBryce Harrington <bryce@osg.samsung.com>
Wed, 21 Jan 2015 04:53:46 +0000 (20:53 -0800)
commit2e710e51bbd317ccf38fc7bca8ffeda3d025dc34
tree1d9f384365aa1b4da733abfa8a37dc52a1399944
parentb73c58e6d7b804a7d1b840bda40db0e5c64202bb
Fix mutex hang in colord on output removal

Using the x11 output (maybe with others as well), weston would hang
when closing the output if the colord plugin is enabled.

The hang occurs in mutex lock in the output notifier handler because
the given GMutex value is incorrect.

This is because of a cast error, the type of container should be
"cms_output" and not "cms_colord".

Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Reviewed-by: Richard Hughes <richard@hughsie.com>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
src/cms-colord.c