Skip to content

Commit 689c76f

Browse files
author
Clement Champetier
committed
StreamTranscoder: do not throw if a stream needs to switch to a generator but cannot
No generator will be used for this stream, but the process is not stopped.
1 parent 9059962 commit 689c76f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/AvTranscoder/transcoder/StreamTranscoder.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -530,9 +530,10 @@ void StreamTranscoder::needToSwitchToGenerator(const bool needToSwitch)
530530
if(needToSwitch && !canSwitchToGenerator())
531531
{
532532
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;
536537
}
537538
_needToSwitchToGenerator = needToSwitch;
538539
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy