Sometimes the width/height would initially be at 0x0 when the swap chain was alt-tabbing, causing the capture to fail full-stop when trying to reacquire.