MediaSink: 优化静音音频相关逻辑性能

This commit is contained in:
ziyue 2021-11-10 12:41:06 +08:00
parent 1ce841ce42
commit b892ac346f

View File

@ -261,8 +261,8 @@ bool MediaSink::addMuteAudioTrack() {
return onTrackFrame(frame);
}));
_mute_audio_maker = std::make_shared<MuteAudioMaker>();
_mute_audio_maker->addDelegate(std::make_shared<FrameWriterInterfaceHelper>([this](const Frame::Ptr &frame) {
return inputFrame(frame);
_mute_audio_maker->addDelegate(std::make_shared<FrameWriterInterfaceHelper>([audio](const Frame::Ptr &frame) {
return audio->inputFrame(frame);
}));
onTrackReady(audio);
TraceL << "mute aac track added";