Skip to content

Commit 37687f0

Browse files
author
Clement Champetier
committed
AvOutputVideo/Audio: print warning when can't set an option in setProfile
Remove _verbose attribute of AvOutputVideo/Audio.
1 parent 6b1c304 commit 37687f0

File tree

4 files changed

+2
-12
lines changed

4 files changed

+2
-12
lines changed

src/AvTranscoder/essenceStream/AvOutputAudio.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ namespace avtranscoder
1414

1515
AvOutputAudio::AvOutputAudio( const std::string& audioCodecName )
1616
: _codec( eCodecTypeEncoder, audioCodecName )
17-
, _verbose( false )
1817
{
1918
}
2019

@@ -208,8 +207,7 @@ void AvOutputAudio::setProfile( const ProfileLoader::Profile& profile, const Aud
208207
}
209208
catch( std::exception& e )
210209
{
211-
if( _verbose )
212-
std::cout << "[OutputAudio] warning - can't set option " << (*it).first << " to " << (*it).second << ": " << e.what() << std::endl;
210+
std::cout << "[OutputAudio] warning - can't set option " << (*it).first << " to " << (*it).second << ": " << e.what() << std::endl;
213211
}
214212
}
215213
}

src/AvTranscoder/essenceStream/AvOutputAudio.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,9 @@ class AvExport AvOutputAudio : public IOutputEssence
2222
AudioCodec& getAudioCodec() { return _codec; }
2323

2424
void setProfile( const ProfileLoader::Profile& profile, const AudioFrameDesc& frameDesc );
25-
void setVerbose( bool verbose = true ) { _verbose = verbose; }
2625

2726
private:
2827
AudioCodec _codec;
29-
30-
bool _verbose;
3128
};
3229

3330
}

src/AvTranscoder/essenceStream/AvOutputVideo.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ namespace avtranscoder
1515

1616
AvOutputVideo::AvOutputVideo( const std::string& videoCodecName )
1717
: _codec( eCodecTypeEncoder, videoCodecName )
18-
, _verbose( false )
1918
{
2019
}
2120

@@ -198,8 +197,7 @@ void AvOutputVideo::setProfile( const ProfileLoader::Profile& profile, const avt
198197
}
199198
catch( std::exception& e )
200199
{
201-
if( _verbose )
202-
std::cout << "[OutputVideo] warning - can't set option " << (*it).first << " to " << (*it).second << ": " << e.what() << std::endl;
200+
std::cout << "[OutputVideo] warning - can't set option " << (*it).first << " to " << (*it).second << ": " << e.what() << std::endl;
203201
}
204202
}
205203
}

src/AvTranscoder/essenceStream/AvOutputVideo.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,9 @@ class AvExport AvOutputVideo : public IOutputEssence
2222
VideoCodec& getVideoCodec() { return _codec; }
2323

2424
void setProfile( const ProfileLoader::Profile& profile, const avtranscoder::VideoFrameDesc& frameDesc );
25-
void setVerbose( bool verbose = true ) { _verbose = verbose; }
2625

2726
private:
2827
VideoCodec _codec;
29-
30-
bool _verbose;
3128
};
3229

3330
}

0 commit comments

Comments
 (0)