/third_party/ffmpeg/libavformat/ |
H A D | tcp.c | 40 int rw_timeout; member 55 { "timeout", "set timeout (in microseconds) of socket I/O operations", OFFSET(rw_timeout), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, INT_MAX, .flags = D|E }, 133 s->rw_timeout = strtol(buf, NULL, 10); in tcp_open() 142 if (s->rw_timeout >= 0) { in tcp_open() 144 h->rw_timeout = s->rw_timeout; in tcp_open() 243 ret = ff_network_wait_fd_timeout(s->fd, 0, h->rw_timeout, &h->interrupt_callback); in tcp_read() 259 ret = ff_network_wait_fd_timeout(s->fd, 1, h->rw_timeout, &h->interrupt_callback); in tcp_write()
|
H A D | rtpproto.c | 63 int64_t rw_timeout; member 80 { "timeout", "set timeout (in microseconds) of socket I/O operations", OFFSET(rw_timeout), AV_OPT_TYPE_INT64, { .i64 = -1 }, -1, INT64_MAX, .flags = D|E }, 276 s->rw_timeout = strtol(buf, NULL, 10); in rtp_open() 299 if (s->rw_timeout >= 0) in rtp_open() 300 h->rw_timeout = s->rw_timeout; in rtp_open() 399 int runs = h->rw_timeout / 1000 / POLLING_TIME; in rtp_read() 423 } else if (n == 0 && h->rw_timeout > 0 && --runs <= 0) { in rtp_read()
|
H A D | libamqp.c | 146 s->connection_timeout = (h->rw_timeout > 0 ? h->rw_timeout : 5000000); in amqp_proto_open() 244 ret = ff_network_wait_fd_timeout(fd, 1, h->rw_timeout, &h->interrupt_callback); in amqp_proto_write() 273 ret = ff_network_wait_fd_timeout(fd, 0, h->rw_timeout, &h->interrupt_callback); in amqp_proto_read()
|
H A D | libzmq.c | 148 ret = zmq_proto_wait_timeout(h, s->socket, 1, h->rw_timeout, &h->interrupt_callback); in zmq_proto_write() 164 ret = zmq_proto_wait_timeout(h, s->socket, 0, h->rw_timeout, &h->interrupt_callback); in zmq_proto_read()
|
H A D | unix.c | 75 if (s->timeout < 0 && h->rw_timeout) in unix_open() 76 s->timeout = h->rw_timeout / 1000; in unix_open()
|
H A D | libssh.c | 39 int rw_timeout; member 55 if (libssh->rw_timeout > 0) { in libssh_create_ssh_session() 56 long timeout = libssh->rw_timeout * 1000; in libssh_create_ssh_session() 479 {"timeout", "set timeout of socket I/O operations", OFFSET(rw_timeout), AV_OPT_TYPE_INT, {.i64 = -1}, -1, INT_MAX, D|E },
|
H A D | libsrt.c | 56 int64_t rw_timeout; member 100 { "timeout", "Timeout of socket I/O operations (in microseconds)", OFFSET(rw_timeout), AV_OPT_TYPE_INT64, { .i64 = -1 }, -1, INT64_MAX, .flags = D|E }, 406 s->rw_timeout = strtoll(buf, NULL, 10); in libsrt_setup() 412 if (s->rw_timeout >= 0) { in libsrt_setup() 413 open_timeout = h->rw_timeout = s->rw_timeout; in libsrt_setup() 684 ret = libsrt_network_wait_fd_timeout(h, s->eid, 0, h->rw_timeout, &h->interrupt_callback); in libsrt_read() 703 ret = libsrt_network_wait_fd_timeout(h, s->eid, 1, h->rw_timeout, &h->interrupt_callback); in libsrt_write()
|
H A D | ftp.c | 66 int rw_timeout; /**< Network timeout. */ member 84 {"timeout", "set timeout of socket I/O operations", OFFSET(rw_timeout), AV_OPT_TYPE_INT, {.i64 = -1}, -1, INT_MAX, D|E }, 574 if (s->rw_timeout != -1) { in ftp_connect_control_connection() 575 av_dict_set_int(&opts, "timeout", s->rw_timeout, 0); in ftp_connect_control_connection() 628 if (s->rw_timeout != -1) { in ftp_connect_data_connection() 629 av_dict_set_int(&opts, "timeout", s->rw_timeout, 0); in ftp_connect_data_connection()
|
H A D | avio.c | 60 {"rw_timeout", "Timeout for IO operations (in microseconds)", offsetof(URLContext, rw_timeout), AV_OPT_TYPE_INT64, { .i64 = 0 }, 0, INT64_MAX, AV_OPT_FLAG_ENCODING_PARAM | AV_OPT_FLAG_DECODING_PARAM }, 380 if (h->rw_timeout) { in retry_transfer_wrapper() 383 else if (av_gettime_relative() > wait_since + h->rw_timeout) in retry_transfer_wrapper()
|
H A D | url.h | 47 int64_t rw_timeout; /**< maximum time to wait for (network) read/write operation completion, in mcs */ member
|
H A D | udp.c | 760 h->rw_timeout = s->timeout; in udp_open()
|