shared指针编译错误纠正

Signed-off-by: yj <yujie57@huawei.com>
This commit is contained in:
yj 2023-04-23 11:38:17 +08:00
parent b19fae7bb9
commit 6164c0269b
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@
namespace OHOS {
namespace Media {
class ICodecService : public std::enable_shared_from_this<ICodecService> {
class ICodecService {
public:
virtual ~ICodecService() = default;

View File

@ -24,7 +24,7 @@
namespace OHOS {
namespace Media {
class CodecServer : public ICodecService, public NoCopyable {
class CodecServer : public std::enable_shared_from_this<CodecServer>, public ICodecService, public NoCopyable {
public:
static std::shared_ptr<ICodecService> Create();
CodecServer();