Skip to content
Prev Previous commit
Next Next commit
obs-outputs: Add RTMPS to new network stack
  • Loading branch information
compiler-errors committed Jul 11, 2018
commit 748ce319b09a4af63bb5785ad909038e617ab911
8 changes: 4 additions & 4 deletions plugins/obs-outputs/rtmp-windows.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,13 @@ static enum data_ret write_data(struct rtmp_stream *stream, bool *can_write,
size_t send_len =
min(latency_packet_size, stream->write_buf_len);

ret = send(stream->rtmp.m_sb.sb_socket,
ret = RTMPSockBuf_Send(&stream->rtmp.m_sb,
(const char *)stream->write_buf,
(int)send_len, 0);
(int)send_len);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may want to disable low latency mode if using RTMPS. I'm not entirely sure how mbed TLS handles sizing of records, but writing lots of small chunks may result in a high TLS record overhead.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@notr1ch I noticed this comment seemed unresolved. Is this still a concern?

} else {
ret = send(stream->rtmp.m_sb.sb_socket,
ret = RTMPSockBuf_Send(&stream->rtmp.m_sb,
(const char *)stream->write_buf,
(int)stream->write_buf_len, 0);
(int)stream->write_buf_len);
}

if (ret > 0) {
Expand Down