Commit b12bd6e7 by ziyue

格式化代码

parent 09d7670f
...@@ -43,10 +43,10 @@ void RtspMuxer::onRtp(RtpPacket::Ptr in, bool is_key) { ...@@ -43,10 +43,10 @@ void RtspMuxer::onRtp(RtpPacket::Ptr in, bool is_key) {
_rtpRing->write(std::move(in), is_key); _rtpRing->write(std::move(in), is_key);
} }
RtspMuxer::RtspMuxer(const TitleSdp::Ptr &title){ RtspMuxer::RtspMuxer(const TitleSdp::Ptr &title) {
if(!title){ if (!title) {
_sdp = std::make_shared<TitleSdp>()->getSdp(); _sdp = std::make_shared<TitleSdp>()->getSdp();
} else{ } else {
_sdp = title->getSdp(); _sdp = title->getSdp();
} }
_rtpRing = std::make_shared<RtpRing::RingType>(); _rtpRing = std::make_shared<RtpRing::RingType>();
...@@ -100,7 +100,7 @@ RtpRing::RingType::Ptr RtspMuxer::getRtpRing() const { ...@@ -100,7 +100,7 @@ RtpRing::RingType::Ptr RtspMuxer::getRtpRing() const {
void RtspMuxer::resetTracks() { void RtspMuxer::resetTracks() {
_sdp.clear(); _sdp.clear();
for(auto &encoder : _encoder){ for (auto &encoder : _encoder) {
encoder = nullptr; encoder = nullptr;
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论