History

avformat/whip: force NONBLOCK for rtp

We need to ensure rtp sets NONBLOCK since the dtls handshake has potentially overriden the sockets mode.

Jack Lau committed 1 year ago

Commit 25e710c1 parent e6d2c671 file · +1 −0Browse files

Showing the changes to libavformat (1 of 1 file). Show all

Unified · Split

libavformat/whip.c+1−0
@@ -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) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t