diff --git a/api/tests/server.c b/api/tests/server.c index 40ac9954..f518b80f 100644 --- a/api/tests/server.c +++ b/api/tests/server.c @@ -179,7 +179,7 @@ void API_CALL on_mk_http_request(const mk_parser parser, "" ""; mk_http_body body = mk_http_body_from_string(content,0); - mk_http_response_invoker_do(invoker, "200 OK", response_header, body); + mk_http_response_invoker_do(invoker, 200, response_header, body); mk_http_body_release(body); } diff --git a/src/Common/MultiMediaSourceMuxer.cpp b/src/Common/MultiMediaSourceMuxer.cpp index 0933c0d6..80ab20f6 100644 --- a/src/Common/MultiMediaSourceMuxer.cpp +++ b/src/Common/MultiMediaSourceMuxer.cpp @@ -347,7 +347,7 @@ void MultiMediaSourceMuxer::startSendRtp(MediaSource &sender, const string &dst_ strong_self->_rtp_sender[ssrc] = rtp_sender; }); #else - cb(SockException(Err_other, "该功能未启用,编译时请打开ENABLE_RTPPROXY宏")); + cb(0, SockException(Err_other, "该功能未启用,编译时请打开ENABLE_RTPPROXY宏")); #endif//ENABLE_RTPPROXY }