Skip to content

Commit fcfe878

Browse files
author
Clement Champetier
committed
AvInputVideo: print warning when can't set an option in setProfile
Remove _verbose attribute of AvInputVideo.
1 parent 30b788b commit fcfe878

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/AvTranscoder/essenceStream/AvInputVideo.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ AvInputVideo::AvInputVideo( AvInputStream& inputStream )
2121
: IInputEssence()
2222
, _inputStream ( &inputStream )
2323
, _frame ( NULL )
24-
, _verbose( false )
2524
{
2625
}
2726

@@ -152,8 +151,7 @@ void AvInputVideo::setProfile( const ProfileLoader::Profile& profile )
152151
}
153152
catch( std::exception& e )
154153
{
155-
if( _verbose )
156-
std::cout << "[InputVideo] warning - can't set option " << (*it).first << " to " << (*it).second << ": " << e.what() << std::endl;
154+
std::cout << "[InputVideo] warning - can't set option " << (*it).first << " to " << (*it).second << ": " << e.what() << std::endl;
157155
}
158156
}
159157
}

src/AvTranscoder/essenceStream/AvInputVideo.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,13 @@ class AvExport AvInputVideo : public IInputEssence
2525
void flushDecoder();
2626

2727
void setProfile( const ProfileLoader::Profile& profile );
28-
void setVerbose( bool verbose = true ) { _verbose = verbose; }
2928

3029
private:
3130
bool decodeNextFrame();
3231

3332
private:
3433
AvInputStream* _inputStream; ///< Stream from which we read next frames (no ownership, has link)
3534
AVFrame* _frame; ///< Libav object to store decoded data (has ownership)
36-
37-
bool _verbose;
3835
};
3936

4037
}

0 commit comments

Comments
 (0)