chore: 修正缩进
This commit is contained in:
parent
9fadcd275a
commit
7cab102bba
|
|
@ -195,16 +195,13 @@ void StackPlayer::rePlay(const std::string& url) {
|
||||||
_failedCount++;
|
_failedCount++;
|
||||||
auto delay = MAX(2 * 1000, MIN(_failedCount * 3 * 1000, 60 * 1000));// 步进延迟 重试间隔
|
auto delay = MAX(2 * 1000, MIN(_failedCount * 3 * 1000, 60 * 1000));// 步进延迟 重试间隔
|
||||||
std::weak_ptr<StackPlayer> weakSelf = shared_from_this();
|
std::weak_ptr<StackPlayer> weakSelf = shared_from_this();
|
||||||
_timer = std::make_shared<toolkit::Timer>(
|
_timer = std::make_shared<toolkit::Timer>(delay / 1000.0f, [weakSelf, url]() {
|
||||||
delay / 1000.0f,
|
|
||||||
[weakSelf, url]() {
|
|
||||||
auto self = weakSelf.lock();
|
auto self = weakSelf.lock();
|
||||||
if (!self) {}
|
if (!self) {}
|
||||||
WarnL << "replay [" << self->_failedCount << "]:" << url;
|
WarnL << "replay [" << self->_failedCount << "]:" << url;
|
||||||
self->_player->play(url);
|
self->_player->play(url);
|
||||||
return false;
|
return false;
|
||||||
},
|
}, nullptr);
|
||||||
nullptr);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
VideoStack::VideoStack(const std::string& id, int width, int height, AVPixelFormat pixfmt,
|
VideoStack::VideoStack(const std::string& id, int width, int height, AVPixelFormat pixfmt,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue