streams: rework stream events handling a bit

  + improve stability for transcoded streams