File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/AvTranscoder/transcoder Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -530,9 +530,10 @@ void StreamTranscoder::needToSwitchToGenerator(const bool needToSwitch)
530
530
if (needToSwitch && !canSwitchToGenerator ())
531
531
{
532
532
std::stringstream os;
533
- os << " The stream " << _inputStream->getStreamIndex () << " has a duration of " << getDuration ()
534
- << " s. It needs to switch to a generator during the process, but it cannot." ;
535
- throw std::runtime_error (os.str ());
533
+ LOG_WARN (" The stream " << _inputStream->getStreamIndex () << " has a duration of " << getDuration ()
534
+ << " s. It needs to switch to a generator during the process, but it cannot. "
535
+ << " No generator will be used for this stream." )
536
+ return ;
536
537
}
537
538
_needToSwitchToGenerator = needToSwitch;
538
539
}
You can’t perform that action at this time.
0 commit comments