History

avformat/rtmpproto: Pass rw_timeout to underlying transport protocol

Zhao Zhili committed 3 years ago

Commit bec6dfc1 parent e1d6b3c1 file · +3 −0Browse files

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

Unified · Split

libavformat/rtmpproto.c+3−0
@@ -2635,6 +2635,9 @@ static int rtmp_open(URLContext *s, const char *uri, int flags, AVDictionary **o · 2634 unmodified lines
26352635
26362636 if (rt->listen_timeout > 0)
26372637 rt->listen = 1;
2638+ /* Pass rw_timeout to underlying transport protocol */
2639+ if (s->rw_timeout > 0)
2640+ av_dict_set_int(opts, "rw_timeout", s->rw_timeout, 0);
26382641
26392642 rt->is_input = !(flags & AVIO_FLAG_WRITE);
26402643

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