codec2: Update Adaptor API

Bug: 63828240
Test: mmm external/v4l2_codec2
Change-Id: Id686eb1f9923dad535b7b0c8daee3ce8e9a00559
diff --git a/C2VDAComponent.cpp b/C2VDAComponent.cpp
index ee94f5d..cd8d7e1 100644
--- a/C2VDAComponent.cpp
+++ b/C2VDAComponent.cpp
@@ -481,8 +481,10 @@
 void C2VDAComponent::onStart(media::VideoCodecProfile profile, base::WaitableEvent* done) {
     DCHECK(mTaskRunner->BelongsToCurrentThread());
     ALOGV("onStart");
-    CHECK(mComponentState == ComponentState::UNINITIALIZED);
-    mVDAInitResult = mVDAAdaptor->initialize(profile, this);
+    CHECK_EQ(mComponentState, ComponentState::UNINITIALIZED);
+    // TODO: Set secureMode value dynamically.
+    bool secureMode = false;
+    mVDAInitResult = mVDAAdaptor->initialize(profile, secureMode, this);
     if (mVDAInitResult == VideoDecodeAcceleratorAdaptor::Result::SUCCESS) {
         mComponentState = ComponentState::STARTED;
     }