Fix error when lock buffer. yuv->rgb