diff --git a/services/data_process/src/pipeline_node/multimedia_codec/encoder/encode_data_process.cpp b/services/data_process/src/pipeline_node/multimedia_codec/encoder/encode_data_process.cpp index 8fe79fd3ef6d3c64c20b669ae75130e8bd7c78c1..71bcdfe2a1241ca45cef71c1e65085a2e686c66f 100644 --- a/services/data_process/src/pipeline_node/multimedia_codec/encoder/encode_data_process.cpp +++ b/services/data_process/src/pipeline_node/multimedia_codec/encoder/encode_data_process.cpp @@ -567,6 +567,7 @@ int32_t EncodeDataProcess::GetProperty(const std::string& propertyName, Property } CHECK_AND_RETURN_RET_LOG(encodeProducerSurface_ == nullptr, DCAMERA_BAD_VALUE, "%{public}s", "EncodeDataProcess::GetProperty: encode dataProcess get property fail, encode surface is nullptr."); + encodeProducerSurface_->SetDefaultUsage(encodeProducerSurface_->GetDefaultUsage() & (~BUFFER_USAGE_VIDEO_ENCODER)); return propertyCarrier.CarrySurfaceProperty(encodeProducerSurface_); } } // namespace DistributedHardware