File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/AvTranscoder/transcoder Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -464,12 +464,12 @@ void Transcoder::fillProcessStat(ProcessStat& processStat)
464
464
for (size_t streamIndex = 0 ; streamIndex < _streamTranscoders.size (); ++streamIndex)
465
465
{
466
466
IOutputStream& stream = _streamTranscoders.at (streamIndex)->getOutputStream ();
467
- const IInputStream* inputStream = _streamTranscoders.at (streamIndex)->getInputStreams ().at (0 );
468
- if (inputStream == NULL )
467
+ if (_streamTranscoders.at (streamIndex)->getInputStreams ().empty ())
469
468
{
470
469
LOG_WARN (" Cannot process statistics of generated stream." )
471
470
continue ;
472
471
}
472
+ const IInputStream* inputStream = _streamTranscoders.at (streamIndex)->getInputStreams ().at (0 );
473
473
const AVMediaType mediaType = inputStream->getProperties ().getStreamType ();
474
474
switch (mediaType)
475
475
{
You can’t perform that action at this time.
0 commit comments