codec2: instantiate VDAAdaptor on component start

In Codec2.0 spec, component could be started/stopped multiple times. Since
Chrome VDA only accepts to be initialized once per instance, we would like to
instantiate VDAAdaptor each time component is started, and destory it each time
component is stopped.

Bug: 78207086
Test: CtsMediaTestCases android.media.cts.DecoderTest#testCodecResetsVP8WithSurface
Change-Id: I7e38dc3f86fd05736bfd1b94368c3cff983ca2b9
2 files changed