mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-13 03:31:45 +08:00
忽略某些流声明存在却没实质数据的track
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user