Fixed typos in previous edits.

This commit is contained in:
Thulinma 2013-03-29 23:03:15 +01:00
parent 1a4cd15a04
commit 6159149a49

View file

@ -471,7 +471,7 @@ void Connector_RTMP::parseAMFCommand(AMF::Object & amfdata, int messagetype, int
} }
if ((amfdata.getContentP(0)->StrValue() == "FCPublish")){ if ((amfdata.getContentP(0)->StrValue() == "FCPublish")){
//send a FCPublic reply //send a FCPublic reply
amfreply = AMF::Object("container", AMF::AMF0_DDV_CONTAINER); AMF::Object amfreply("container", AMF::AMF0_DDV_CONTAINER);
amfreply.addContent(AMF::Object("", "onFCPublish")); //status reply amfreply.addContent(AMF::Object("", "onFCPublish")); //status reply
amfreply.addContent(AMF::Object("", 0, AMF::AMF0_NUMBER)); //same transaction ID amfreply.addContent(AMF::Object("", 0, AMF::AMF0_NUMBER)); //same transaction ID
amfreply.addContent(AMF::Object("", (double)0, AMF::AMF0_NULL)); //null - command info amfreply.addContent(AMF::Object("", (double)0, AMF::AMF0_NULL)); //null - command info
@ -487,7 +487,7 @@ void Connector_RTMP::parseAMFCommand(AMF::Object & amfdata, int messagetype, int
amfreply.addContent(AMF::Object("", "_result")); //result success amfreply.addContent(AMF::Object("", "_result")); //result success
amfreply.addContent(amfdata.getContent(1)); //same transaction ID amfreply.addContent(amfdata.getContent(1)); //same transaction ID
amfreply.addContent(AMF::Object("", (double)0, AMF::AMF0_NULL)); //null - command info amfreply.addContent(AMF::Object("", (double)0, AMF::AMF0_NULL)); //null - command info
amfreply.addContent(AMF::Object("", AMF0_UNDEFINED)); //stream ID? amfreply.addContent(AMF::Object("", AMF::AMF0_UNDEFINED)); //stream ID?
sendCommand(amfreply, messagetype, stream_id); sendCommand(amfreply, messagetype, stream_id);
return; return;
}//releaseStream }//releaseStream