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