Skip to content

Commit 6e22c0a

Browse files
author
Clement Champetier
committed
Video/AudioReader: renamed getter to properties
Indicate that these are 'source' properties.
1 parent 31c9d21 commit 6e22c0a

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

app/avPlay/Window.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ void Window::displayInformations()
422422
std::cout << textureType << " " << _width << "x" << _height << std::endl;
423423

424424
// stream info
425-
const avtranscoder::VideoProperties* properties = _reader->getVideoProperties();
425+
const avtranscoder::VideoProperties* properties = _reader->getSourceVideoProperties();
426426
if( properties != NULL )
427427
std::cout << *properties << std::endl;
428428
}

src/AvTranscoder/reader/AudioReader.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@ class AvExport AudioReader : public IReader
3434
AVSampleFormat getOutputSampleFormat() const { return _outputSampleFormat; }
3535
//@}
3636

37-
// @brief Input info
38-
const AudioProperties* getAudioProperties() const {return _audioStreamProperties;}
39-
37+
// @brief Get source audio properties
38+
const AudioProperties* getSourceAudioProperties() const {return _audioStreamProperties;}
4039

4140
private:
4241
void init();

src/AvTranscoder/reader/VideoReader.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,8 @@ class AvExport VideoReader : public IReader
3737
AVPixelFormat getOutputPixelFormat() const { return _outputPixelProperties.getAVPixelFormat(); }
3838
//@}
3939

40-
// @brief Input info
41-
const VideoProperties* getVideoProperties() const {return _videoStreamProperties;}
42-
40+
// @brief Get source video properties
41+
const VideoProperties* getSourceVideoProperties() const { return _videoStreamProperties; }
4342

4443
private:
4544
void init();

0 commit comments

Comments
 (0)