Merge "Better return value checking" am: 8fc16d0e33 am: 4807106b7f

Original change: https://android-review.googlesource.com/c/platform/frameworks/av/+/2377385

Change-Id: I56ac193910362eafeddd1d28eb742548d970a022
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>