|
@@ -621,7 +621,7 @@ void CCounterConnectorEntity ::OnReceivePkt(int type, int sub_type, const char *
|
|
|
CSimpleStringA CCounterConnectorEntity ::BuildVideoDesc(int local_view_x, int local_view_y, int local_view_cx, int local_view_cy)
|
|
|
{
|
|
|
char param[512] = {0};
|
|
|
- sprintf(param,
|
|
|
+ snprintf(param, 512,
|
|
|
"remote_ip:0\r\n"
|
|
|
"remote_video_rtp:0\r\n"
|
|
|
"remote_video_width:0\r\n"
|
|
@@ -642,7 +642,7 @@ CSimpleStringA CCounterConnectorEntity ::BuildVideoDesc(int local_view_x, int lo
|
|
|
CSimpleStringA CCounterConnectorEntity ::BuildDoubleVideoDesc(int local_view_x, int local_view_y, int local_view_cx, int local_view_cy, int remote_view_x, int remote_view_y, int remote_view_cx, int remote_view_cy)
|
|
|
{
|
|
|
char param[512] = {0};
|
|
|
- sprintf(param,
|
|
|
+ snprintf(param, 512,
|
|
|
"remote_ip:0\r\n"
|
|
|
"remote_video_rtp:0\r\n"
|
|
|
"remote_video_width:0\r\n"
|
|
@@ -731,9 +731,6 @@ void CCounterConnectorEntity::StopRemoteRecordSpeakerAudioCapture()
|
|
|
void CCounterConnectorEntity::Handle_StartRecordPreview(const char* pszMessage)
|
|
|
{
|
|
|
CSimpleStringA strMsg = pszMessage;
|
|
|
- if (strMsg.IsStartWith("ews|",true)){
|
|
|
- strMsg = strMsg.SubString(4,strMsg.GetLength()-4);
|
|
|
- }
|
|
|
|
|
|
CSimpleStringA strVideo;
|
|
|
strVideo = ConstructVideoRenderParam(strMsg, false);
|