Skip to content

Commit

Permalink
For #1615, refactor the version and API for SRT.
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Feb 26, 2020
1 parent 04d0620 commit bbdbcf1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions trunk/src/srt/srt_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,9 @@ void srt_server::on_work()
}
}

// @see 2020-01-28 https://github.com/Haivision/srt/commit/b8c70ec801a56bea151ecce9c09c4ebb720c2f68#diff-fb66028e8746fea578788532533a296bR786
#if SRT_VERSION_MAJOR > 1 || SRT_VERSION_MINOR > 4 || SRT_VERSION_PATCH > 1
// New API at 2020-01-28, >1.4.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);
#endif
}
Expand Down

0 comments on commit bbdbcf1

Please sign in to comment.