Skip to content

Commit 2dc2b40

Browse files
author
Clement Champetier
committed
StreamTranscoder: added log to check the current process case for each frame
1 parent 55fb7e5 commit 2dc2b40

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

src/AvTranscoder/transcoder/StreamTranscoder.cpp

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,23 @@ void StreamTranscoder::preProcessCodecLatency()
341341

342342
bool StreamTranscoder::processFrame()
343343
{
344-
if(getProcessCase() == eProcessCaseGenerator)
344+
const EProcessCase processCase = getProcessCase();
345+
std::string msg = "Current process case of the stream is a ";
346+
switch(processCase)
347+
{
348+
case eProcessCaseTranscode:
349+
msg += "transcode.";
350+
break;
351+
case eProcessCaseRewrap:
352+
msg += "rewrap.";
353+
break;
354+
case eProcessCaseGenerator:
355+
msg += "generator.";
356+
break;
357+
}
358+
LOG_DEBUG(msg)
359+
360+
if(processCase == eProcessCaseGenerator)
345361
return processTranscode();
346362

347363
// Manage offset
@@ -380,7 +396,7 @@ bool StreamTranscoder::processFrame()
380396
}
381397
}
382398

383-
if(getProcessCase() == eProcessCaseRewrap)
399+
if(processCase == eProcessCaseRewrap)
384400
return processRewrap();
385401

386402
return processTranscode(_subStreamIndex);

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