Skip to content

Commit

Permalink
avformat/libsrt: send message in order
Browse files Browse the repository at this point in the history
There is no good use case for out of order delivery of data. For live
streaming with TSBPD enabled by default, the receiver get data in order
based on the timestamps. However, if TSBPD is disabled, the data can
be delivered out of order.

Signed-off-by: Marton Balint <[email protected]>
  • Loading branch information
quink-black authored and cus committed Jun 8, 2021
1 parent 3249b96 commit 9099046
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavformat/libsrt.c
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ static int libsrt_write(URLContext *h, const uint8_t *buf, int size)
return ret;
}

ret = srt_sendmsg(s->fd, buf, size, -1, 0);
ret = srt_sendmsg(s->fd, buf, size, -1, 1);
if (ret < 0) {
ret = libsrt_neterrno(h);
}
Expand Down

0 comments on commit 9099046

Please sign in to comment.