winlin

fix the build failed bug

... ... @@ -605,7 +605,7 @@ function apply_user_presets() {
SRS_HTTP_API=YES
SRS_LIBRTMP=YES
SRS_RESEARCH=NO
SRS_UTEST=NO
SRS_UTEST=YES
SRS_GPERF=NO
SRS_GPERF_MC=NO
SRS_GPERF_MP=NO
... ...
... ... @@ -436,7 +436,6 @@ SrsConfDirective* SrsConfDirective::copy()
cp->conf_line = conf_line;
cp->name = name;
cp->args = args;
cp->create_time = create_time;
for (int i = 0; i < (int)directives.size(); i++) {
SrsConfDirective* directive = directives.at(i);
... ...
... ... @@ -190,6 +190,10 @@ private:
*/
virtual int parse_conf(_srs_internal::SrsConfigBuffer* buffer, SrsDirectiveType type);
/**
* deep copy the directive.
*/
virtual SrsConfDirective* copy();
/**
* read a token from buffer.
* a token, is the directive args and a flag indicates whether has child-directives.
* @param args, the output directive args, the first is the directive name, left is the args.
... ...