Check that we have a valid output_state before attempting to use it to calculate the duration of a buffer. It is possible that we don't have a state yet, for example when we are dropping the first buffers.
Check that we have a valid output_state before attempting to use it to calculate the duration of a buffer. It is possible that we don't have a state yet, for example when we are dropping the first buffers.