mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine consts
This commit is contained in:
parent
4a7378b77a
commit
eea2310b07
8 changed files with 86 additions and 43 deletions
|
@ -25,4 +25,29 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
|
||||
#ifdef SRS_INGEST
|
||||
|
||||
#include <srs_kernel_error.hpp>
|
||||
|
||||
// when error, ingester sleep for a while and retry.
|
||||
#define SRS_INGESTER_SLEEP_US (int64_t)(3*1000*1000LL)
|
||||
|
||||
SrsIngester::SrsIngester()
|
||||
{
|
||||
pthread = new SrsThread(this, SRS_INGESTER_SLEEP_US);
|
||||
}
|
||||
|
||||
SrsIngester::~SrsIngester()
|
||||
{
|
||||
srs_freep(pthread);
|
||||
}
|
||||
|
||||
int SrsIngester::cycle()
|
||||
{
|
||||
int ret = ERROR_SUCCESS;
|
||||
return ret;
|
||||
}
|
||||
|
||||
void SrsIngester::on_thread_stop()
|
||||
{
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue