Skip to content

Commit

Permalink
Update SLSEpollThread.cpp
Browse files Browse the repository at this point in the history
compatible with srt v1.4.0 when container is empty.
  • Loading branch information
Edward-Wu authored Oct 31, 2019
1 parent e4b1183 commit c5a5a0c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions slscore/SLSEpollThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ int CSLSEpollThread::init_epoll()
sls_log(SLS_LOG_INFO, "[%p]CSLSEpollThread::work, srt_epoll_create failed. th_id=%lld.", this, m_th_id);
return CSLSSrt::libsrt_neterrno();
}
//compatible with srt v1.4.0 when container is empty.
srt_epoll_set(m_eid, SRT_EPOLL_ENABLE_EMPTY);
return ret;
}

Expand Down

1 comment on commit c5a5a0c

@Edward-Wu
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the srt_epoll_set function exists in srt v1.4.0,if you use the smaller version than srt v1.4.0 please disable this function call simply.

Please sign in to comment.