Skip to content

Commit 380f238

Browse files
author
Valentin NOEL
committed
FilterGraph: minor clean into FrameBuffer class
1 parent 053f9be commit 380f238

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/AvTranscoder/filter/FilterGraph.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ FrameBuffer::FrameBuffer(const AudioFrameDesc& audioFrameDesc)
3232

3333
FrameBuffer::~FrameBuffer()
3434
{
35-
for (int i = 0; i < _frameQueue.size(); ++i)
35+
for(size_t i = 0; i < _frameQueue.size(); ++i)
3636
popFrame();
3737
}
3838

src/AvTranscoder/filter/FilterGraph.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ class FrameBuffer
3030
/**
3131
* @brief Return whether the buffer is empty or not.
3232
*/
33-
bool isEmpty() { return _frameQueue.empty() && _totalDataSize == 0; }
33+
bool isEmpty() const { return _frameQueue.empty() && _totalDataSize == 0; }
3434
/**
3535
* @brief Return the total amount of data contained in the frames of the buffer.
3636
*/
37-
size_t getDataSize() { return _totalDataSize; }
37+
size_t getDataSize() const { return _totalDataSize; }
3838

3939
/**
4040
* @brief Push a frame at the end of the buffer.
@@ -50,7 +50,7 @@ class FrameBuffer
5050
private:
5151
void popFrame();
5252

53-
const AudioFrameDesc _audioFrameDesc;
53+
AudioFrameDesc _audioFrameDesc;
5454

5555
std::queue<IFrame*> _frameQueue;
5656
size_t _totalDataSize;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy