**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. |
||
|---|---|---|
| .. | ||
| css | ||
| img | ||
| js | ||
| api-server_index.html | ||
| crossdomain.xml | ||
| index.html | ||
| nginx_index.html | ||
| rtc_player.html | ||
| rtc_publisher.html | ||
| srs_bwt.html | ||
| srs_chat.html | ||
| srs_gb28181.html | ||
| srs_player_deprecated.html | ||
| srs_player.html | ||
| srs_publisher_flash.html | ||
| srs_publisher.html | ||
| srs-http-server_index.html | ||
| vlc.html | ||
| whep.html | ||
| whip.html | ||