Fix camera crash when switching between photo and video : Thanks ivanich

Change-Id: I794406a10a4f5c7eaac6626193cfa195994ac384