mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-03 08:20:41 +08:00
合并pr:#509
This commit is contained in:
@@ -197,8 +197,7 @@ void FFmpegSource::startTimer(int timeout_ms) {
|
||||
strongSelf->findAsync(0, [&](const MediaSource::Ptr &src) {
|
||||
//同步查找流
|
||||
if (!src) {
|
||||
//流不在线,重新拉流
|
||||
//@子悦,这里原先是10秒超时,实际发现10秒不够,我改成20秒了
|
||||
//流不在线,重新拉流, 这里原先是10秒超时,实际发现10秒不够,改成20秒了
|
||||
if(strongSelf->_replay_ticker.elapsedTime() > 20 * 1000){
|
||||
//上次重试时间超过10秒,那么再重试FFmpeg拉流
|
||||
strongSelf->_replay_ticker.resetTime();
|
||||
|
||||
Reference in New Issue
Block a user