Skip to content

Commit e76b51d

Browse files
author
Clement Champetier
committed
ProgressListener: rename ProgressListener to ConsoleProgress
the class implements the IProgress, to display a progress bar in console.
1 parent 1ac90b9 commit e76b51d

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

app/cpp/avMeta/avMeta.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ int main( int argc, char** argv )
1111
return( -1 );
1212
}
1313

14-
avtranscoder::ProgressListener p;
14+
avtranscoder::ConsoleProgress p;
1515

1616
avtranscoder::InputFile input( argv[1] );
1717
input.analyse( p, avtranscoder::InputFile::eAnalyseLevelFull );

app/cpp/avTranscoder/avTranscoder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ void transcodeVideo( const char* inputfilename, const char* outputFilename )
1717
// av_log_set_level( AV_LOG_DEBUG );
1818

1919
Profile profile( true );
20-
ProgressListener p;
20+
ConsoleProgress p;
2121

2222
InputFile input( inputfilename );
2323
input.analyse( p );

app/cpp/avplay/AvReader.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class AvReader : public Reader
1818
, _sourceImage( NULL )
1919
, _imageToDisplay( NULL )
2020
{
21-
avtranscoder::ProgressListener p;
21+
avtranscoder::ConsoleProgress p;
2222

2323
_inputFile.analyse( p );
2424
_videoStream = _inputFile.getProperties().videoStreams.at(0).streamId;

app/cpp/genericProcessor/genericProcessor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ int main( int argc, char** argv )
121121
if( verbose )
122122
std::cout << "start Transcode" << std::endl;
123123

124-
avtranscoder::ProgressListener progress;
124+
avtranscoder::ConsoleProgress progress;
125125

126126
// video re-wrapping or transcoding if necessary
127127
transcoder.process( progress );

src/AvTranscoder/ProgressListener.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ class IProgress
3838
/**
3939
* @brief Implementation of IProgress, to display a progress bar in console.
4040
*/
41-
class ProgressListener: public IProgress
41+
class ConsoleProgress : public IProgress
4242
{
4343
public:
44-
~ProgressListener()
44+
~ConsoleProgress()
4545
{}
4646

4747
EJobStatus progress( const double processedDuration, const double programDuration )

0 commit comments

Comments
 (0)