mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-07 04:08:13 +08:00
修复播放器析构时调用虚函数的bug
This commit is contained in:
@@ -46,7 +46,6 @@ RtmpPlayer::RtmpPlayer() {
|
||||
}
|
||||
|
||||
RtmpPlayer::~RtmpPlayer() {
|
||||
teardown();
|
||||
DebugL << endl;
|
||||
}
|
||||
void RtmpPlayer::teardown() {
|
||||
|
||||
@@ -45,7 +45,6 @@ public:
|
||||
RtmpPlayerImp(){};
|
||||
virtual ~RtmpPlayerImp(){
|
||||
DebugL<<endl;
|
||||
teardown();
|
||||
};
|
||||
float getProgress() const override{
|
||||
if(getDuration() > 0){
|
||||
|
||||
Reference in New Issue
Block a user