pad: rework sticky events a little
authorWim Taymans <wim.taymans@collabora.co.uk>
Wed, 18 May 2011 09:08:52 +0000 (11:08 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 18 May 2011 09:08:52 +0000 (11:08 +0200)
commit029ac4597e3e162fd73d17e295cc3ca1f13795e9
treee1c4493208c020c40a42b969a31982cf116eb486
parent93a80e2d9192ae0fc2beaf44e1a35060019c8a44
pad: rework sticky events a little

Update the design docs with some clear rules for how sticky events are
handled.
Reimplement the sticky tags, use a small structure to hold the event and its
current state (active or inactive).
Events on sinkpads only become active when the event function returned success
for the event.
When linking, only update events that are different.
Avoid making a copy of the event array, use the object lock to protect the event
array and release it only to call the event function. This will need to check
if something changed, later.
Disable a test in the unit test, it can't work yet.
docs/design/part-events.txt
gst/gstpad.c
tests/check/gst/gstpad.c