Add a function to iterate over all stored events.
This reverts commit 9ef1346b1f. Way to much for one commit and I'm not sure we want to get rid of the pad caps just like that. It's nice to have the buffer and its type in onw nice bundle without having to drag the complete context with it.
9ef1346b1f
Put the srcpad context on buffers instead of caps. This allows us to associate all the relevant info contained in events with a buffer.
Add a helper object to manage the events that define the context of a buffer and a stream.