Skip to content

Commit 499097a

Browse files
author
Clement Champetier
committed
FileProperties: fix message log when cannot getStreamPropertiesWithIndex
The local variable should not be called "os" when logging.
1 parent bc67a2f commit 499097a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/AvTranscoder/properties/FileProperties.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,10 +228,10 @@ const avtranscoder::StreamProperties& FileProperties::getStreamPropertiesWithInd
228228
avtranscoder::StreamProperties* properties = _streamsProperties.find(streamIndex)->second;
229229
if(properties)
230230
return *properties;
231-
std::stringstream os;
232-
os << "No stream properties correspond to stream at index ";
233-
os << streamIndex;
234-
throw std::runtime_error(os.str());
231+
std::stringstream msg;
232+
msg << "No stream properties correspond to stream at index ";
233+
msg << streamIndex;
234+
throw std::runtime_error(msg.str());
235235
}
236236

237237
const std::vector<avtranscoder::StreamProperties*> FileProperties::getStreamProperties() const

0 commit comments

Comments
 (0)