Merge remote-tracking branch 'origin/master'

This commit is contained in:
2022-02-14 22:18:55 +02:00
27 changed files with 203 additions and 171 deletions

View File

@@ -245,3 +245,8 @@ std::string MediaStreamId::getFinishDescription() const
return oss.str();
}
std::ostream& operator << (std::ostream& output, const MediaStreamId& id)
{
return (output << id.toString());
}

View File

@@ -87,4 +87,6 @@ struct MediaStreamId
std::string getFinishDescription() const;
};
std::ostream& operator << (std::ostream& output, const MediaStreamId& id);
#endif

View File

@@ -119,7 +119,7 @@ std::string StringHelper::toHex(unsigned int value)
std::string StringHelper::toHex(const void *ptr)
{
std::ostringstream oss;
oss << std::hex << ptr;
oss << std::fixed << std::setw(8) << std::setfill('0') << std::hex << ptr;
return oss.str();
}