Adding the event handler for EOS, now we put the components in flushing state before resending the event thought the src pad