Skip to content

Commit aba5ff4

Browse files
author
Clement Champetier
committed
StreamTranscoder: fix log message which does not appear
The macro to log (LOG_WARN...) already instanciate a 'std::stringstream os'.
1 parent 61c0ca9 commit aba5ff4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/AvTranscoder/transcoder/StreamTranscoder.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -319,14 +319,14 @@ void StreamTranscoder::preProcessCodecLatency()
319319
{
320320
if( ! _outputEncoder )
321321
{
322-
std::stringstream os;
323-
os << "No encoder found for stream ";
322+
std::stringstream msg;
323+
msg << "No encoder found for input stream ";
324324
if( getProcessCase() == eProcessCaseGenerator )
325-
os << "generator";
325+
msg << "generator";
326326
else
327-
os << _inputStream->getStreamIndex();
328-
os << ": will not preProcessCodecLatency.";
329-
LOG_WARN( os.str() )
327+
msg << _inputStream->getStreamIndex();
328+
msg << ": will not preProcessCodecLatency.";
329+
LOG_WARN( msg.str() )
330330
return;
331331
}
332332

0 commit comments

Comments
 (0)