Skip to content

Commit 50b61a1

Browse files
author
Clement Champetier
committed
Trancoder: refactoring - processFrame
1 parent 99faa7a commit 50b61a1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/AvTranscoder/Transcoder/Transcoder.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,11 @@ bool Transcoder::processFrame()
219219

220220
bool streamProcessStatus = _streamTranscoders.at( streamIndex )->processFrame();
221221

222-
if( streamProcessStatus )
223-
continue;
224-
225-
_streamTranscoders.clear();
222+
if( ! streamProcessStatus )
223+
{
224+
_streamTranscoders.clear();
225+
return false;
226+
}
226227
}
227228
return true;
228229
}

0 commit comments

Comments
 (0)