CCodec: clear deadline after component start returns
Bug: 287391419
Test: atest android.videocodec.cts.VideoEncoderMinMaxTest
Change-Id: I0477afb011716edb16f5a4074f1a4f29ecf8d312
diff --git a/media/codec2/sfplugin/CCodec.cpp b/media/codec2/sfplugin/CCodec.cpp
index 3caa258..3d089de 100644
--- a/media/codec2/sfplugin/CCodec.cpp
+++ b/media/codec2/sfplugin/CCodec.cpp
@@ -1791,6 +1791,10 @@
ACTION_CODE_FATAL);
return;
}
+
+ // clear the deadline after the component starts
+ setDeadline(TimePoint::max(), 0ms, "none");
+
sp<AMessage> inputFormat;
sp<AMessage> outputFormat;
status_t err2 = OK;