Lines Matching refs:ret
40 int ret, n, reply_code;
42 while ((ret = avio_handshake(client)) > 0) {
50 if (ret < 0)
58 if ((ret = av_opt_set_int(client, "reply_code", reply_code, AV_OPT_SEARCH_CHILDREN)) < 0) {
59 av_log(client, AV_LOG_ERROR, "Failed to set reply_code: %s.\n", av_err2str(ret));
64 while ((ret = avio_handshake(client)) > 0);
66 if (ret < 0)
73 if ((ret = avio_open2(&input, in_uri, AVIO_FLAG_READ, NULL, NULL)) < 0) {
75 av_err2str(ret));
105 int ret, pid;
119 if ((ret = av_dict_set(&options, "listen", "2", 0)) < 0) {
120 fprintf(stderr, "Failed to set listen mode for server: %s\n", av_err2str(ret));
121 return ret;
123 if ((ret = avio_open2(&server, out_uri, AVIO_FLAG_WRITE, NULL, &options)) < 0) {
124 fprintf(stderr, "Failed to open server: %s\n", av_err2str(ret));
125 return ret;
129 if ((ret = avio_accept(server, &client)) < 0)
137 ret = AVERROR(errno);
151 if (ret < 0 && ret != AVERROR_EOF) {
152 fprintf(stderr, "Some errors occurred: %s\n", av_err2str(ret));