input: Use own main loop instead of sr_session_run()