Fixed 2 pass

There were a few bugs introduced with the lagged encode changes.
Amoung those fixed were generalizing streams, not queuing first
pass source frames, and correctly terminating passes.

Change-Id: Iaf6a82cd7b3e78732dcc2caa8cc94665ba364b07
4 files changed