CCodec: Retain old stop()/release() behavior on HIDL HALs

Stop the decoder output surface first then stop the HAL when HIDL
Codec2 is enabled in order to keep the behavior same.

Still the behavior can be overrided by a boolean system property.
  debug.codec2.stop_hal_before_surface

Test: build
Bug: 339247977
Change-Id: I83ac981fb56920a98e22fde8d42d500c2c02b998
1 file changed