pad: add pending event for sticky events
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 20 May 2011 09:36:25 +0000 (11:36 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 20 May 2011 09:36:25 +0000 (11:36 +0200)
commit31a314ac5b3c7cffe6d2a1947462adfe8a10d913
tree3f08c474e28524253cea8c1b020404e11c618a56
parent83389aa19740e72acb256cc5977fe4c6b7e1eae3
pad: add pending event for sticky events

Change the sticky event array so that it contains a pending and an active event.
Events on the sinkpad are copied to the pending array and after the eventfunc
returned TRUE, moved to the active event. This allows us to queue new events
like when we do per-pad offsets without removing the currently active event.
Remove the active argument from the gst_pad_get_sticky_event() method, the
pending events are not something we want to expose.
gst/gstpad.c
gst/gstpad.h
tests/check/gst/gstpad.c