baseparse: refactor pending events pushing
baseparse: refactor pending events pushing

Refactor code repeated 3 times to a common function

https://bugzilla.gnome.org/show_bug.cgi?id=721350

justinjoy/gstreamer,justinjoy/gstreamer,justinjoy/gstreamer,justinjoy/gstreamer,justinjoy/gstreamer