Fix for repeated pause/resume in CapturePause

I’ve updated the iPhone CapturePause sample to fix a problem that would occur if you repeatedly clicked on pause and resume during recording. The sample calculates the length of the pause and adjusts subsequent timestamps by that amount so that the resulting video is consistent. However, in some cases, the length of the pause would be calculated wrongly, which would result in errors from the asset writer (because the timestamps were prior to previously submitted timestamps).

Download the sample here.

3rd April 2013