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:
parent
7da792f19d
commit
e13d16439e
14 changed files with 453 additions and 161 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue