mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refactor hybrid server model
This commit is contained in:
parent
33c6bf1f8f
commit
2363d258de
2 changed files with 15 additions and 17 deletions
|
@ -209,6 +209,12 @@ SrtServerAdapter::~SrtServerAdapter()
|
|||
}
|
||||
|
||||
srs_error_t SrtServerAdapter::initialize()
|
||||
{
|
||||
srs_error_t err = srs_success;
|
||||
return err;
|
||||
}
|
||||
|
||||
srs_error_t SrtServerAdapter::run()
|
||||
{
|
||||
srs_error_t err = srs_success;
|
||||
|
||||
|
@ -230,13 +236,6 @@ srs_error_t SrtServerAdapter::initialize()
|
|||
srs_trace("srt server is disabled...");
|
||||
}
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
srs_error_t SrtServerAdapter::run()
|
||||
{
|
||||
srs_error_t err = srs_success;
|
||||
|
||||
if(_srs_config->get_srt_enabled()) {
|
||||
srt_ptr->start();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue