codec2: use an index flag for split parameters
Bug: 124982277
Change-Id: I88dd8f568a5616f12cf6c176ab97fbfc89083962
diff --git a/media/codec2/sfplugin/ReflectedParamUpdater.cpp b/media/codec2/sfplugin/ReflectedParamUpdater.cpp
index 880d4a5..55b0ec9 100644
--- a/media/codec2/sfplugin/ReflectedParamUpdater.cpp
+++ b/media/codec2/sfplugin/ReflectedParamUpdater.cpp
@@ -205,6 +205,13 @@
const std::shared_ptr<C2ParamReflector> &reflector, bool markVendor) {
C2String paramName = desc->name();
+ // Do not reflect requested parameters
+ // TODO: split these once aliases are introduced into '.actual' and '.requested' and alias
+ // the name to '.actual'.
+ if (desc->index() & C2Param::CoreIndex::IS_REQUEST_FLAG) {
+ return;
+ }
+
// prefix vendor parameters
if (desc->index().isVendor() && markVendor) {
paramName = "vendor." + paramName;