appsrc/sink: Add functions for catching/injecting events
Submitted by Sebastian Dröge
This is mostly useful for custom events. Any reasons not to do that? Should we prevent using it for standard events that are handled internally (e.g. to prevent setting different caps on the caps property than in the caps event)?