1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

avformat/libsrt: send message in order

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 <cus@passwd.hu>
This commit is contained in:
Zhao Zhili 2021-06-04 15:22:27 +08:00 committed by Marton Balint
parent 3249b96342
commit 9099046cc7

View File

@ -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);
}