Compare commits

..

No commits in common. "6c82601fe278225a33601ca868761eecc2a59826" and "0ead9b694597f9bc4075588fb30912c590052e2b" have entirely different histories.

2 changed files with 10 additions and 12 deletions

View File

@ -225,7 +225,6 @@ ApiArgsType getAllArgs(const Parser &parser) {
allArgs[pr.first] = strCoding::UrlDecodeComponent(pr.second);
}
} else if (parser["Content-Type"].find("application/json") == 0) {
if (!parser.content().empty()) {
try {
stringstream ss(parser.content());
Value jsonArgs;
@ -237,7 +236,6 @@ ApiArgsType getAllArgs(const Parser &parser) {
} catch (std::exception &ex) {
WarnL << ex.what();
}
}
} else if (!parser["Content-Type"].empty()) {
WarnL << "invalid Content-Type:" << parser["Content-Type"];
}

View File

@ -114,7 +114,7 @@ void WebRtcPusher::onRecvRtp(MediaTrack &track, const string &rid, RtpPacket::Pt
void WebRtcPusher::onStartWebRTC() {
WebRtcTransportImp::onStartWebRTC();
_simulcast = _answer_sdp->supportSimulcast();
if (canRecvRtp() && _push_src) {
if (canRecvRtp()) {
_push_src->setSdp(_answer_sdp->toRtspSdp());
}
}