receive pointer and fix null problem for multiple cams