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