From 49cbc512ae32c205bf6e0249c97ffefcefd2ba4a Mon Sep 17 00:00:00 2001 From: "stefan@webrtc.org" Date: Wed, 24 Aug 2011 08:51:08 +0000 Subject: [PATCH] Fix unused variable warning in video_coding. Issue 57: [Patch] Fix unused variable warnings in the video_coding module Review URL: http://webrtc-codereview.appspot.com/126004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@435 4adac7df-926f-26a2-2b94-8c16560cd09d --- src/modules/video_coding/main/source/jitter_buffer.cc | 4 ---- src/modules/video_coding/main/source/packet.cc | 1 - 2 files changed, 5 deletions(-) diff --git a/src/modules/video_coding/main/source/jitter_buffer.cc b/src/modules/video_coding/main/source/jitter_buffer.cc index aafb70113..80b41f124 100644 --- a/src/modules/video_coding/main/source/jitter_buffer.cc +++ b/src/modules/video_coding/main/source/jitter_buffer.cc @@ -552,7 +552,6 @@ VCMFrameListItem* VCMJitterBuffer::FindOldestSequenceNum() const { WebRtc_UWord16 currentLow = 0xffff; - VCMFrameBufferStateEnum state = kStateFree; WebRtc_UWord16 sequenceNumber = 0; bool first = true; VCMFrameListItem* frameListItem = _frameBuffersTSOrder.First(); @@ -564,7 +563,6 @@ VCMJitterBuffer::FindOldestSequenceNum() const // pick oldest VCMFrameBuffer* ptrFrame = NULL; ptrFrame = frameListItem->GetItem(); - state = ptrFrame->GetState(); sequenceNumber = static_cast(ptrFrame->GetLowSeqNum()); // Find the oldest, hence lowest, using sequence numbers @@ -1152,10 +1150,8 @@ VCMJitterBuffer::GetFrameForDecodingNACK() { oldestFrame = oldestFrameListItem->GetItem(); } - bool continuous = true; if (oldestFrame == NULL) { - continuous = false; // If we didn't find one we're good with a complete key/decodable frame. oldestFrameListItem = _frameBuffersTSOrder.FindFrameListItem( CompleteDecodableKeyFrameCriteria); diff --git a/src/modules/video_coding/main/source/packet.cc b/src/modules/video_coding/main/source/packet.cc index 1c934d37b..a4beff7a1 100644 --- a/src/modules/video_coding/main/source/packet.cc +++ b/src/modules/video_coding/main/source/packet.cc @@ -55,7 +55,6 @@ VCMPacket::VCMPacket(const WebRtc_UWord8* ptr, WebRtc_UWord32 size, WebRtc_UWord void VCMPacket::CopyCodecSpecifics(const RTPVideoHeader& videoHeader) { - RTPVideoTypeHeader codecHeader = videoHeader.codecHeader; switch(videoHeader.codec) { case kRTPVideoVP8: