TvInputHal: Fix bug in first frame captured function

Fix app start with valid surface.
Fix crash when app exits.

firstFrameCapturedFromNative incorrectly used
EVENT_STREAM_CONFIGURATION_CHANGED instead of
EVENT_FIRST_FRAME_CAPTURED.
Thread start after set surface in addOrUpdateStream().
Change order of surface clear in remove stream.

Change-Id: I213ac61833f06d62e89bdcb78af9e40e672eeb94
2 files changed