diff options
author | Chih-Yu Huang <akahuang@google.com> | 2021-06-04 11:31:14 +0900 |
---|---|---|
committer | Chih-Yu Huang <akahuang@google.com> | 2021-06-07 14:10:55 +0900 |
commit | 7f03b347e37be265241bb96d21fe149e51e38fe9 (patch) | |
tree | 1c23b393638a8eb006b59284a5a7dbf835bbfe59 | |
parent | deb4e3881d4a4f9175e4ac71caf3b4ab02e5fe62 (diff) | |
download | v4l2_codec2-7f03b347e37be265241bb96d21fe149e51e38fe9.tar.gz |
Switch to "ro.vendor" group for Android property
Originally we use "debug" group to save the configuration. However,
the value should be read-only at run-time. "ro.vendor" is a better
group for the usage case.
Bug: 189059445
Test: android.media.cts.AdaptivePlaybackTest
Change-Id: I04cfd8498b6bafdd0a4ee6ea16d002c9f50bdc0d
-rw-r--r-- | components/V4L2DecodeComponent.cpp | 2 | ||||
-rw-r--r-- | components/V4L2EncodeComponent.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/components/V4L2DecodeComponent.cpp b/components/V4L2DecodeComponent.cpp index 400c765..77a5efa 100644 --- a/components/V4L2DecodeComponent.cpp +++ b/components/V4L2DecodeComponent.cpp @@ -124,7 +124,7 @@ std::shared_ptr<C2Component> V4L2DecodeComponent::create( const std::string& name, c2_node_id_t id, const std::shared_ptr<C2ReflectorHelper>& helper, C2ComponentFactory::ComponentDeleter deleter) { static const int32_t kMaxConcurrentInstances = - property_get_int32("debug.v4l2_codec2.decode.concurrent-instances", -1); + property_get_int32("ro.vendor.v4l2_codec2.decode_concurrent_instances", -1); static std::mutex mutex; std::lock_guard<std::mutex> lock(mutex); diff --git a/components/V4L2EncodeComponent.cpp b/components/V4L2EncodeComponent.cpp index b4bbc0e..459ac85 100644 --- a/components/V4L2EncodeComponent.cpp +++ b/components/V4L2EncodeComponent.cpp @@ -198,7 +198,7 @@ std::shared_ptr<C2Component> V4L2EncodeComponent::create( ALOGV("%s(%s)", __func__, name.c_str()); static const int32_t kMaxConcurrentInstances = - property_get_int32("debug.v4l2_codec2.encode.concurrent-instances", -1); + property_get_int32("ro.vendor.v4l2_codec2.encode_concurrent_instances", -1); static std::mutex mutex; std::lock_guard<std::mutex> lock(mutex); |