We need to ensure rtp sets NONBLOCK since the dtls handshake has potentially overriden the sockets mode.
Showing the changes to libavformat (1 of 1 file). Show all
Unified · Split
| @@ -1495,6 +1495,7 @@ static int create_rtp_muxer(AVFormatContext *s) · 1494 unmodified lines | |||
| 1495 | uint8_t *buffer = NULL; | 1495 | uint8_t *buffer = NULL; |
| 1496 | char buf[64]; | 1496 | char buf[64]; |
| 1497 | WHIPContext *whip = s->priv_data; | 1497 | WHIPContext *whip = s->priv_data; |
| 1498 | whip->udp->flags |= AVIO_FLAG_NONBLOCK; | ||
| 1498 | 1499 | ||
| 1499 | const AVOutputFormat *rtp_format = av_guess_format("rtp", NULL, NULL); | 1500 | const AVOutputFormat *rtp_format = av_guess_format("rtp", NULL, NULL); |
| 1500 | if (!rtp_format) { | 1501 | if (!rtp_format) { |