mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 10:40:05 +08:00
MediaSink: 优化静音音频相关逻辑性能
This commit is contained in:
parent
1ce841ce42
commit
b892ac346f
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user