mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-10-31 00:37:39 +08:00
忽略某些流声明存在却没实质数据的track
This commit is contained in:
parent
5d56e86cfd
commit
b42072405e
@ -147,7 +147,12 @@ public:
|
||||
* 是否已经初始化
|
||||
*/
|
||||
bool ready() override {
|
||||
return true;
|
||||
return _ready;
|
||||
}
|
||||
|
||||
bool inputFrame(const Frame::Ptr &frame) override {
|
||||
_ready = true;
|
||||
return AudioTrack::inputFrame(frame);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -171,6 +176,7 @@ public:
|
||||
return _channels;
|
||||
}
|
||||
private:
|
||||
bool _ready = false;
|
||||
CodecId _codecid;
|
||||
int _sample_rate;
|
||||
int _channels;
|
||||
|
Loading…
Reference in New Issue
Block a user