Skip to content

Commit 36a1fa9

Browse files
author
Clement Champetier
committed
Transcode: add log
1 parent 194b8b6 commit 36a1fa9

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/AvTranscoder/transcoder/StreamTranscoder.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,12 +464,16 @@ bool StreamTranscoder::processTranscode( const int subStreamIndex )
464464

465465
void StreamTranscoder::switchToGeneratorDecoder()
466466
{
467+
LOG_INFO( "Switch to generator decoder" )
468+
467469
_currentDecoder = _generator;
468470
assert( _currentDecoder != NULL );
469471
}
470472

471473
void StreamTranscoder::switchToInputDecoder()
472474
{
475+
LOG_INFO( "Switch to input decoder" )
476+
473477
_currentDecoder = _inputDecoder;
474478
assert( _currentDecoder != NULL );
475479
}

src/AvTranscoder/transcoder/Transcoder.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ void Transcoder::preProcessCodecLatency()
199199
{
200200
for( size_t streamIndex = 0; streamIndex < _streamTranscoders.size(); ++streamIndex )
201201
{
202-
std::stringstream os;
203202
LOG_DEBUG( "Init stream " << streamIndex )
204203
_streamTranscoders.at( streamIndex )->preProcessCodecLatency();
205204
}
@@ -244,8 +243,8 @@ void Transcoder::process( IProgress& progress )
244243
preProcessCodecLatency();
245244

246245
double outputDuration = getOutputDuration();
246+
LOG_DEBUG( "Output duration of the process will be " << outputDuration )
247247

248-
std::stringstream os;
249248
size_t frame = 0;
250249
bool frameProcessed = true;
251250
while( frameProcessed )

0 commit comments

Comments
 (0)