appsrc/sink: Add functions for catching/injecting events
@slomo
Submitted by Sebastian Dröge Link to original bug (#760707)
Description
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)?