1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

SRT: support rtmp to srt

This commit is contained in:
hondaxiao 2022-04-20 22:23:46 +08:00 committed by winlin
parent 7da792f19d
commit e13d16439e
14 changed files with 453 additions and 161 deletions

View file

@ -380,12 +380,14 @@ srs_error_t SrsSrtEventLoop::cycle()
return srs_error_wrap(err, "srt listener");
}
// Check events fired, return directly.
if ((err = srt_poller_->wait(0)) != srs_success) {
srs_error("srt poll wait failed, err=%s", srs_error_desc(err).c_str());
srs_error_reset(err);
}
srs_usleep(10 * SRS_UTIME_MILLISECONDS);
// Schedule srt event by state-thread.
srs_usleep(1 * SRS_UTIME_MILLISECONDS);
}
return err;