【修改说明】source\demuxer inner API

Signed-off-by: yangjunhui10 <yangjunhui10@huawei.com>
This commit is contained in:
yangjunhui10 2023-04-03 08:49:29 +08:00
parent 415b4fdfe6
commit 5174d28a76
3 changed files with 5 additions and 6 deletions

View File

@ -39,11 +39,10 @@ int32_t AVDemuxerImpl::Init(Source *source)
{
demuxerService_ = MediaServiceFactory::GetInstance().CreateAVDemuxerService();
CHECK_AND_RETURN_RET_LOG(demuxerService_ != nullptr, MSERR_UNKNOWN, "failed to create avdemuxer service");
uint8_t sourceServerAttr = source->GetSourceServerAttr();
return demuxerService_->Init(sourceServerAttr);
uint8_t sourceAttr = source->GetSourceAttr();
return demuxerService_->Init(sourceAttr);
}
AVDemuxerImpl::AVDemuxerImpl()
{
MEDIA_LOGD("AVDemuxerImpl:0x%{public}06" PRIXPTR " Instances create". FAKE_POINTER(this));

View File

@ -43,10 +43,10 @@ int32_t AVSourceImpl::Init(const std::string &uri)
return sourceService_->Init(uri);
}
uint8_t GetSourceServerImpl()
uint8_t GetSourceAttr()
{
CHECK_AND_RETURN_RET_LOG(sourceService_ != nullptr, MSERR_INVALID_OPERATION, "avdemuxer service died!");
return sourceService_->GetSourceServerAttr();
return sourceService_->GetSourceAttr();
}
AVSourceImpl::AVSourceImpl()

View File

@ -30,7 +30,7 @@ public:
uint32_t GetTrackCount() override;
std::shared_ptr<SourceTrack> LoadSourceTrackByID(uint32_t trackId) override;
int32_t Destroy() override;
uint8_t GetSourceServerAttr() override;
uint8_t GetSourceAttr() override;
int32_t SetParameter(const Format &param, uint32_t trackId) override;
std::shared_ptr<Format> GetTrackFormat(Format &param, uint32_t trackId) override;
int32_t Init(const std::string &uri);