File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
src/AvTranscoder/transcoder Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -235,14 +235,12 @@ bool Transcoder::processFrame()
235
235
return false ;
236
236
237
237
// For each stream, process a frame
238
- size_t nbStreamProcessStatusFailed = 0 ;
239
238
for (size_t streamIndex = 0 ; streamIndex < _streamTranscoders.size (); ++streamIndex)
240
239
{
241
240
LOG_DEBUG (" Process stream " << streamIndex << " /" << (_streamTranscoders.size () - 1 ))
242
241
if (!_streamTranscoders.at (streamIndex)->processFrame ())
243
242
{
244
243
LOG_WARN (" Failed to process stream " << streamIndex)
245
- ++nbStreamProcessStatusFailed;
246
244
247
245
// if this is the end of the main stream
248
246
if (streamIndex == _mainStreamIndex) {
@@ -251,21 +249,6 @@ bool Transcoder::processFrame()
251
249
}
252
250
}
253
251
}
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
- }
269
252
return true ;
270
253
}
271
254
You can’t perform that action at this time.
0 commit comments