Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(574)

Unified Diff: modules/rtp_rtcp/source/rtp_sender.cc

Issue 9188022: Initialized a variable to fix -Wmaybe-uninitialized warning. (Closed) Base URL: http://git.chromium.org/external/webrtc/src.git@master
Patch Set: Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/rtp_rtcp/source/rtp_sender.cc
diff --git a/modules/rtp_rtcp/source/rtp_sender.cc b/modules/rtp_rtcp/source/rtp_sender.cc
index 87e8223422ae72236bddff69de11fc41913591e9..c481f252586d5d89c8a711d815d2c50a85e84bfc 100644
--- a/modules/rtp_rtcp/source/rtp_sender.cc
+++ b/modules/rtp_rtcp/source/rtp_sender.cc
@@ -722,7 +722,7 @@ RTPSender::SendOutgoingData(const FrameType frameType,
return 0;
}
}
- RtpVideoCodecTypes videoType;
+ RtpVideoCodecTypes videoType = kRtpNoVideo;
if(CheckPayloadType(payloadType, videoType) != 0)
{
WEBRTC_TRACE(kTraceError, kTraceRtpRtcp, _id, "%s invalid argument failed to find payloadType:%d", __FUNCTION__, payloadType);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698