- fixes for pvqa_pcap project - lazy creation of codecs + compare timespec structures

This commit is contained in:
2024-12-24 13:19:54 +03:00
parent b5d0242c74
commit c45c686582
5 changed files with 62 additions and 7 deletions
+12 -2
View File
@@ -407,11 +407,21 @@ void CodecList::fillCodecMap(CodecMap& cm)
for (auto& factory: mFactoryList)
{
// Create codec here. Although they are not needed right now - they can be needed to find codec's info.
PCodec c = factory->create();
cm.insert({factory->payloadType(), c});
// PCodec c = factory->create();
cm.insert({factory->payloadType(), PCodec()});
}
}
PCodec CodecList::createCodecByPayloadType(int payloadType)
{
for (auto& factory: mFactoryList)
{
if (factory->payloadType() == payloadType)
return factory->create();
}
return PCodec();
}
CodecListPriority::CodecListPriority()
{