Skip to content

Commit a5b2348

Browse files
author
Clement Champetier
committed
Transcoder: added log when a process ended
1 parent 28fcd82 commit a5b2348

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/AvTranscoder/transcoder/Transcoder.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,21 +252,26 @@ ProcessStat Transcoder::process( IProgress& progress )
252252

253253
// check if JobStatusCancel
254254
if( progress.progress( ( progressDuration > outputDuration ) ? outputDuration : progressDuration, outputDuration ) == eJobStatusCancel )
255+
{
256+
LOG_INFO( "End of process because the job was canceled." )
255257
break;
258+
}
256259

257260
// check progressDuration
258261
if( progressDuration >= outputDuration )
262+
{
263+
LOG_INFO( "End of process because the output program duration (" << progressDuration << "s) is equal or upper than " << outputDuration << "s." )
259264
break;
265+
}
260266

261267
LOG_DEBUG( "Process frame " << frame )
262268
frameProcessed = processFrame();
263-
264269
++frame;
265270
}
266271

267272
_outputFile.endWrap();
268273

269-
LOG_INFO( "End of process" )
274+
LOG_INFO( "End of process: " << frame << " frames processed" )
270275

271276
LOG_INFO( "Get process statistics" )
272277
ProcessStat processStat;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy