Skip to content

Commit 6a62af4

Browse files
author
Clement Champetier
committed
ICodec: suppress swig warning with open method
* Rename open to openCodec. * Swig warning 321: 'open' conflicts with a built-in name in python.
1 parent 2a17606 commit 6a62af4

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

src/AvTranscoder/codec/ICodec.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ ICodec::~ICodec()
5151
_avCodecContext = NULL;
5252
}
5353

54-
void ICodec::open()
54+
void ICodec::openCodec()
5555
{
5656
if( ! _avCodecContext )
5757
throw std::runtime_error( "unable to open a codec with no codec context" );

src/AvTranscoder/codec/ICodec.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class AvExport ICodec
3636
virtual ~ICodec() = 0;
3737

3838
/// Initialize the codec context.
39-
void open();
39+
void openCodec();
4040

4141
std::string getCodecName() const;
4242
AVCodecID getCodecId() const;

src/AvTranscoder/decoder/AudioDecoder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ AudioDecoder::~AudioDecoder()
5252

5353
void AudioDecoder::setup()
5454
{
55-
_inputStream->getAudioCodec().open();
55+
_inputStream->getAudioCodec().openCodec();
5656
}
5757

5858
bool AudioDecoder::decodeNextFrame( Frame& frameBuffer )

src/AvTranscoder/decoder/VideoDecoder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ VideoDecoder::~VideoDecoder()
5050

5151
void VideoDecoder::setup()
5252
{
53-
_inputStream->getVideoCodec().open();
53+
_inputStream->getVideoCodec().openCodec();
5454
}
5555

5656
bool VideoDecoder::decodeNextFrame( Frame& frameBuffer )

src/AvTranscoder/encoder/AudioEncoder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ AudioEncoder::~AudioEncoder()
3737

3838
void AudioEncoder::setup()
3939
{
40-
_codec.open();
40+
_codec.openCodec();
4141
}
4242

4343
bool AudioEncoder::encodeFrame( const Frame& sourceFrame, Frame& codedFrame )

src/AvTranscoder/encoder/VideoEncoder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ VideoEncoder::~VideoEncoder()
3838

3939
void VideoEncoder::setup()
4040
{
41-
_codec.open();
41+
_codec.openCodec();
4242
}
4343

4444

0 commit comments

Comments
 (0)