Fixed issue where camera timeout and caused glib malloc issue