Skip to content

Commit c18072c

Browse files
author
Clement Champetier
committed
Transcoder: refactored how to check string parameters when addStream
1 parent cc6d03f commit c18072c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AvTranscoder/transcoder/Transcoder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ Transcoder::~Transcoder()
3838
void Transcoder::addStream(const InputStreamDesc& inputStreamDesc, const std::string& profileName, const float offset)
3939
{
4040
// Check filename
41-
if(inputStreamDesc._filename.length() == 0)
41+
if(inputStreamDesc._filename.empty())
4242
throw std::runtime_error("Can't process a stream without a filename indicated.");
4343

44-
if(profileName.length() == 0)
44+
if(profileName.empty())
4545
{
4646
// Re-wrap
4747
if(!inputStreamDesc.demultiplexing())

0 commit comments

Comments
 (0)