Bug 1020379 - [RTSP] Fix trivial compile warnings. r=sworkman

This commit is contained in:
Ethan Tseng 2014-06-06 11:28:45 +08:00
parent df66611f95
commit 395bed4bb7
3 changed files with 2 additions and 6 deletions

View File

@ -278,7 +278,7 @@ void ARTPConnection::onPollStreams() {
moz_xcalloc(pollCount, sizeof(PRPollDesc));
// |pollIndex| is used to map different RTP & RTCP socket pairs.
int numSocketsToPoll = 0, pollIndex = 0;
uint32_t numSocketsToPoll = 0, pollIndex = 0;
for (List<StreamInfo>::iterator it = mStreams.begin();
it != mStreams.end(); ++it, pollIndex += 2) {
if (pollIndex >= pollCount) {

View File

@ -56,10 +56,10 @@ ARTSPConnection::ARTSPConnection(bool uidValid, uid_t uid)
mUID(uid),
mState(DISCONNECTED),
mAuthType(NONE),
mSocket(nullptr),
mConnectionID(0),
mNextCSeq(0),
mReceiveResponseEventPending(false),
mSocket(nullptr),
mNumSocketPollTimeoutRetries(0) {
MakeUserAgent(&mUserAgent);
}

View File

@ -41,10 +41,6 @@
#include "prnetdb.h"
extern PRLogModuleInfo* gRtspLog;
#define LOGI(msg, ...) PR_LOG(gRtspLog, PR_LOG_ALWAYS, ("RTSP" msg, ##__VA_ARGS__))
#define LOGV(msg, ...) PR_LOG(gRtspLog, PR_LOG_DEBUG, (msg, ##__VA_ARGS__))
#define LOGE(msg, ...) PR_LOG(gRtspLog, PR_LOG_ERROR, (msg, ##__VA_ARGS__))
#define LOGW(msg, ...) PR_LOG(gRtspLog, PR_LOG_WARNING, (msg, ##__VA_ARGS__))
// If no access units are received within 2 secs, assume that the rtp
// stream has ended and signal end of stream.