mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
For #1615, refactor the version and API for SRT.
This commit is contained in:
parent
04d0620dde
commit
bbdbcf173c
1 changed files with 3 additions and 2 deletions
|
@ -257,8 +257,9 @@ void srt_server::on_work()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// @see 2020-01-28 https://github.com/Haivision/srt/commit/b8c70ec801a56bea151ecce9c09c4ebb720c2f68#diff-fb66028e8746fea578788532533a296bR786
|
// New API at 2020-01-28, >1.4.1
|
||||||
#if SRT_VERSION_MAJOR > 1 || SRT_VERSION_MINOR > 4 || SRT_VERSION_PATCH > 1
|
// @see https://github.com/Haivision/srt/commit/b8c70ec801a56bea151ecce9c09c4ebb720c2f68#diff-fb66028e8746fea578788532533a296bR786
|
||||||
|
#if (SRT_VERSION_MAJOR<<24 | SRT_VERSION_MINOR<<16 | SRT_VERSION_PATCH<<8) > 0x01040100
|
||||||
srt_epoll_clear_usocks(_pollid);
|
srt_epoll_clear_usocks(_pollid);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue