Fix the crash bug of double reopen YUV file