mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
support disable all
This commit is contained in:
parent
9ab579c6e8
commit
c1b9541b5c
3 changed files with 24 additions and 10 deletions
|
@ -23,11 +23,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
|
||||
#include <srs_app_hls.hpp>
|
||||
|
||||
/**
|
||||
* the HLS section, only available when HLS enabled.
|
||||
*/
|
||||
#ifdef SRS_AUTO_HLS
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
|
@ -72,6 +67,11 @@ ISrsHlsHandler::~ISrsHlsHandler()
|
|||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* * the HLS section, only available when HLS enabled.
|
||||
* */
|
||||
#ifdef SRS_AUTO_HLS
|
||||
|
||||
SrsHlsCacheWriter::SrsHlsCacheWriter(bool write_cache, bool write_file)
|
||||
{
|
||||
should_write_cache = write_cache;
|
||||
|
|
|
@ -29,11 +29,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
*/
|
||||
#include <srs_core.hpp>
|
||||
|
||||
/**
|
||||
* the HLS section, only available when HLS enabled.
|
||||
*/
|
||||
#ifdef SRS_AUTO_HLS
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
|
@ -86,6 +81,11 @@ public:
|
|||
virtual int on_hls_unpublish(SrsRequest* req) = 0;
|
||||
};
|
||||
|
||||
/**
|
||||
* * the HLS section, only available when HLS enabled.
|
||||
* */
|
||||
#ifdef SRS_AUTO_HLS
|
||||
|
||||
/**
|
||||
* write to file and cache.
|
||||
*/
|
||||
|
|
|
@ -61,6 +61,8 @@ ISrsThreadContext* _srs_context = new ISrsThreadContext();
|
|||
SrsConfig* _srs_config = NULL;
|
||||
SrsServer* _srs_server = NULL;
|
||||
|
||||
#if defined(SRS_AUTO_HTTP_PARSER)
|
||||
|
||||
/**
|
||||
* main entrance.
|
||||
*/
|
||||
|
@ -1402,3 +1404,15 @@ int proxy_hls2rtmp(string hls, string rtmp)
|
|||
return ret;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
#ifndef SRS_AUTO_HTTP_PARSER
|
||||
srs_error("ingest requires http-api or http-server");
|
||||
#endif
|
||||
return -1;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue