Fix segmentation fault when hw yuv overlay is created twice.