[FFmpeg-devel] [PATCH] avformat/rtmpproto: Pass rw_timeout to underlying transport protocol
Zhao Zhili
quinkblack at foxmail.com
Wed Nov 22 11:20:10 EET 2023
> On Nov 15, 2023, at 21:24, Zhao Zhili <quinkblack at foxmail.com> wrote:
>
> From: Zhao Zhili <zhilizhao at tencent.com>
>
> Signed-off-by: Zhao Zhili <zhilizhao at tencent.com>
> ---
> libavformat/rtmpproto.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
> index 98718bc6da..a0c6195eb2 100644
> --- a/libavformat/rtmpproto.c
> +++ b/libavformat/rtmpproto.c
> @@ -2635,6 +2635,9 @@ static int rtmp_open(URLContext *s, const char *uri, int flags, AVDictionary **o
>
> if (rt->listen_timeout > 0)
> rt->listen = 1;
> + /* Pass rw_timeout to underlying transport protocol */
> + if (s->rw_timeout > 0)
> + av_dict_set_int(opts, "rw_timeout", s->rw_timeout, 0);
OK, I made a mistake. Since ffurl_open_whitelist copy from parent automatically,
this is a NOP. Will revert this commit.
>
> rt->is_input = !(flags & AVIO_FLAG_WRITE);
>
> --
> 2.42.0
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
More information about the ffmpeg-devel
mailing list