GESTimeline: Lock object discovery list
authorRobert Swain <robert.swain@gmail.com>
Wed, 4 Jan 2012 16:24:16 +0000 (17:24 +0100)
committerThibault Saunier <thibault.saunier@collabora.com>
Thu, 5 Jan 2012 12:01:20 +0000 (09:01 -0300)
commitfc97c16e7e43cd2362175106e72541113b5e4a81
tree7eb3b433f430d910218b0287dc9382666efdd175
parentd1de4b2114718b63b647a43a169d35a21f69e4b3
GESTimeline: Lock object discovery list

TimelineFileSource objects are asynchronously discovered with discoverer
with such objects being added to a pendingobjects list. If one were to
remove a layer before an object in said layer had been discovered, a
segfault could occur.

As such, management of the list has been made more robust with the
addition of a mutex and removal of the object from the pendingobjects
list upon layer removal.
ges/ges-timeline.c