mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix bug for default configure
This commit is contained in:
parent
005502a07e
commit
cc338fdb7c
2 changed files with 20 additions and 8 deletions
|
@ -133,14 +133,6 @@ done
|
|||
#####################################################################################
|
||||
# apply the default value when user donot specified.
|
||||
#####################################################################################
|
||||
# if http-xxxx specified, open the SRS_HTTP_PARSER
|
||||
__compile_http_parser=NO
|
||||
if [ $SRS_HTTP_CALLBACK = YES ]; then SRS_HTTP_PARSER=YES;__compile_http_parser=YES; fi
|
||||
if [ $SRS_HTTP_SERVER = YES ]; then SRS_HTTP_PARSER=YES;__compile_http_parser=YES; fi
|
||||
if [ $SRS_HTTP_API = YES ]; then SRS_HTTP_PARSER=YES;__compile_http_parser=YES; fi
|
||||
# if no http specified, disable http parser
|
||||
if [ $__compile_http_parser = NO ]; then SRS_HTTP_PARSER=NO; fi
|
||||
|
||||
# if transcode specified, try ffmpeg if possible.
|
||||
if [ $SRS_TRANSCODE = YES ]; then if [ $SRS_FFMPEG_TOOL = RESERVED ]; then SRS_FFMPEG_TOOL=YES; fi fi
|
||||
if [ $SRS_INGEST = YES ]; then if [ $SRS_FFMPEG_TOOL = RESERVED ]; then SRS_FFMPEG_TOOL=YES; fi fi
|
||||
|
@ -254,6 +246,12 @@ if [ $SRS_PI = YES ]; then
|
|||
SRS_STATIC=YES
|
||||
fi
|
||||
|
||||
# if http-xxxx specified, open the SRS_HTTP_PARSER
|
||||
SRS_HTTP_PARSER=NO
|
||||
if [ $SRS_HTTP_CALLBACK = YES ]; then SRS_HTTP_PARSER=YES; fi
|
||||
if [ $SRS_HTTP_SERVER = YES ]; then SRS_HTTP_PARSER=YES; fi
|
||||
if [ $SRS_HTTP_API = YES ]; then SRS_HTTP_PARSER=YES; fi
|
||||
|
||||
# parse the jobs for make
|
||||
if [[ "" -eq SRS_JOBS ]]; then
|
||||
export SRS_JOBS="--jobs"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue