basesrc: push EOS event before post error message when error
When gst_base_src_loop need to pause because of some errors, the EOS event should be push to downstream before post error message to pipeline. Posting error message make the whole pipeline change state and the later EOS event(and some sticky unreceived events) may cause unexpected results.
Fix: #419 (moved)