Skip to content

Commit

Permalink
Ensure InitEncoderData is called before DelayedPublisher connects
Browse files Browse the repository at this point in the history
This seems to fix crashes in various subsystems that were introduced
in e7804fc when using a publish delay
  • Loading branch information
palana committed Oct 3, 2014
1 parent c4a77ac commit bebaf1b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/DelayedPublisher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ class DelayedPublisher : public RTMPPublisher

void SendPacket(BYTE *data, UINT size, DWORD timestamp, PacketType type)
{
InitEncoderData();

ProcessDelayedPackets(timestamp);

NetworkPacket *newPacket = delayedPackets.CreateNew();
Expand Down

0 comments on commit bebaf1b

Please sign in to comment.