重置rtmp时间戳

This commit is contained in:
monktan
2020-11-03 21:26:48 +08:00
parent 4fb7e4841f
commit 2107e58295
2 changed files with 9 additions and 2 deletions

View File

@@ -15,6 +15,7 @@
#include "RtmpMediaSource.h"
#include "Network/TcpClient.h"
#include "Pusher/PusherBase.h"
#include "Common/Stamp.h"
namespace mediakit {
@@ -89,6 +90,9 @@ private:
std::shared_ptr<Timer> _publish_timer;
std::weak_ptr<RtmpMediaSource> _publish_src;
RtmpMediaSource::RingType::RingReader::Ptr _rtmp_reader;
//时间戳修改器
Stamp _stamp[2];
};
} /* namespace mediakit */