Revert "忽略某些流声明存在却没实质数据的track"

This reverts commit b42072405e.
This commit is contained in:
ziyue 2021-11-10 14:18:55 +08:00
parent 6f92ef2f3b
commit 1513e9a857

View File

@ -147,12 +147,7 @@ public:
*
*/
bool ready() override {
return _ready;
}
bool inputFrame(const Frame::Ptr &frame) override {
_ready = true;
return AudioTrack::inputFrame(frame);
return true;
}
/**
@ -176,7 +171,6 @@ public:
return _channels;
}
private:
bool _ready = false;
CodecId _codecid;
int _sample_rate;
int _channels;