libstagefright: Add NULL check for mHFRRatio

Commit 12fa017cb "libstagefright: Enable HFR feature for video recording"
is not yet fully implemented. Camera recording will fail because timeScale
is not calculated properly. Add a simple NULL check to fix.

Change-Id: Ieea78efb43645f57615309a91508092433bc34b3
Merge remote-tracking branch 'upstream/cm-11.0' into cm-11.0
Disable Camera shutter sound [1/3] Credits lion0738

frameworks_av

Change-Id: If3dc3b6b42c2d792002bb67cfa9cda21aa948c2a
Signed-off-by: STELIX <ssspinni@gmail.com>
Initialize mPowerModule: C++ is not JAVA

When called setPowerHint, camera recording crashes.

This commit shows you how to be a bad developer:
b4be352d74248987c74cd75b49c82c2664b89a60

Change-Id: I83bbbf764e5864a56c45ea9b9b6b046b324cb47e