Fixs bugs regarding CTS fails for low performance codec

If codec returns error while configuring codec, MediaCodec will set state to UNINITIALIZED.
And MediaCodec.stop() throws IllegalStateException if in the Uninitialized state.
ReconfigDrcTest of AdaptivePlaybackTest calls MediaCodec.stop() after configureAndStart().
So if codec doesn't support 720P resolution, codec will return error while configuring and set state to UNINITIALLIZED.
It makes IllegalStateException while stopping codec.
So, I fixed ReconfigDrcTest to call mDecoder.stop() when configureAndStart() returns true.

Change-Id: I47a49d0347258daab913539f79cbe79ca6e2d477
Signed-off-by: Eunim Ko <>
1 file changed