mirror of
https://github.com/danog/libtgvoip.git
synced 2024-11-26 12:14:39 +01:00
Bugfixes
This commit is contained in:
parent
88602411c6
commit
bb62971f5f
@ -22,13 +22,14 @@ void AudioPacketSender::SendFrame(unsigned char *data, size_t len, unsigned char
|
||||
if (controller->stopping)
|
||||
return;
|
||||
|
||||
std::shared_ptr<Packet> pkt;
|
||||
std::shared_ptr<Packet> pkt = std::make_shared<Packet>();
|
||||
pkt->data = std::make_unique<Buffer>(len);
|
||||
pkt->data->CopyFrom(data, 0, len);
|
||||
|
||||
std::shared_ptr<Buffer> secondaryPtr;
|
||||
if (secondaryLen)
|
||||
{
|
||||
secondaryPtr = std::make_shared<Buffer>(secondaryLen);
|
||||
secondaryPtr->CopyFrom(secondaryData, 0, secondaryLen);
|
||||
}
|
||||
|
||||
|
@ -31,8 +31,8 @@ struct AudioStreamInfo
|
||||
{
|
||||
virtual ~AudioStreamInfo() = default;
|
||||
|
||||
bool extraECEnabled;
|
||||
uint16_t frameDuration;
|
||||
bool extraECEnabled = false;
|
||||
uint16_t frameDuration = 60;
|
||||
};
|
||||
struct VideoStreamInfo
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user