Skip to content

Commit fb3c87a

Browse files
author
Clement Champetier
committed
Transcoder: removed unnecessary code
Never reach.
1 parent 046f6db commit fb3c87a

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/AvTranscoder/transcoder/Transcoder.cpp

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -235,14 +235,12 @@ bool Transcoder::processFrame()
235235
return false;
236236

237237
// For each stream, process a frame
238-
size_t nbStreamProcessStatusFailed = 0;
239238
for(size_t streamIndex = 0; streamIndex < _streamTranscoders.size(); ++streamIndex)
240239
{
241240
LOG_DEBUG("Process stream " << streamIndex << "/" << (_streamTranscoders.size() - 1))
242241
if(!_streamTranscoders.at(streamIndex)->processFrame())
243242
{
244243
LOG_WARN("Failed to process stream " << streamIndex)
245-
++nbStreamProcessStatusFailed;
246244

247245
// if this is the end of the main stream
248246
if(streamIndex == _mainStreamIndex) {
@@ -251,21 +249,6 @@ bool Transcoder::processFrame()
251249
}
252250
}
253251
}
254-
255-
// Get the number of streams without the generators (they always succeed)
256-
size_t nbStreamsWithoutGenerator = _streamTranscoders.size();
257-
for(size_t streamIndex = 0; streamIndex < _streamTranscoders.size(); ++streamIndex)
258-
{
259-
if(_streamTranscoders.at(streamIndex)->getProcessCase() == StreamTranscoder::eProcessCaseGenerator)
260-
--nbStreamsWithoutGenerator;
261-
}
262-
263-
// If all streams failed to process a new frame
264-
if(nbStreamsWithoutGenerator != 0 && nbStreamsWithoutGenerator == nbStreamProcessStatusFailed)
265-
{
266-
LOG_INFO("End of process because all streams (except generators) failed to process a new frame.")
267-
return false;
268-
}
269252
return true;
270253
}
271254

0 commit comments

Comments
 (0)