**Problem**: Newly created sources (RTMP/SRT/RTC/RTSP) were being immediately marked as "dead" and deleted by the cleanup timer before publishers could connect, causing "new live source, dead=1" errors. **Root Cause**: All source constructors initialized `stream_die_at_ = 0`, causing `stream_is_dead()` to return `true` immediately since current time was always greater than `0 + 3 seconds`. **Solution**: Changed all four source constructors to initialize `stream_die_at_ = srs_time_now_cached()`, giving newly created sources a proper 3-second grace period before cleanup. |
||
|---|---|---|
| .. | ||
| adapter-7.4.0.js | ||
| adapter-7.4.0.min.js | ||
| AdobeFlashPlayerInstall.swf | ||
| bootstrap.min.js | ||
| dash-v4.5.1.all.min.js | ||
| dash.all.min.js.map | ||
| hls-1.4.14.min.js | ||
| hls.min.js.map | ||
| jquery-1.12.2.min.js | ||
| jquery-1.12.2.min.map | ||
| json2.js | ||
| mpegts-1.7.3.min.js | ||
| mpegts.js.map | ||
| srs.log.js | ||
| srs.page.js | ||
| srs.player.js | ||
| srs.publisher.js | ||
| srs.sdk.js | ||
| srs.utility.js | ||
| swfobject.js | ||
| winlin.utility.js | ||