Prevent sending empty RTCP packet.
Review URL: http://webrtc-codereview.appspot.com/331009 git-svn-id: http://webrtc.googlecode.com/svn/trunk@1277 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
		| @@ -2010,7 +2010,11 @@ RTCPSender::SendRTCP(const WebRtc_UWord32 packetTypeFlags, | ||||
|             } | ||||
|         } | ||||
|     }while (false); | ||||
|  | ||||
|     // Sanity don't send empty packets. | ||||
|     if (pos == 0) | ||||
|     { | ||||
|         return -1; | ||||
|     } | ||||
|     return SendToNetwork(rtcpbuffer, (WebRtc_UWord16)pos); | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 pwestin@webrtc.org
					pwestin@webrtc.org