aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2013-12-23 18:43:55 +0100
committerStefano Sabatini <stefasab@gmail.com>2013-12-23 18:44:52 +0100
commit129ce05b0228e62bfec22bda34e77b52cefd1acc (patch)
tree81493358ae01bf0e94a817650693eed89c4bd31b /tools
parentdd00f9cac373be1d184e5d11f3506a90cf4fb983 (diff)
downloadffmpeg-129ce05b0228e62bfec22bda34e77b52cefd1acc.tar.gz
tools/zmqsend: rename ctx to zmq_ctx
The new name is more explicit.
Diffstat (limited to 'tools')
-rw-r--r--tools/zmqsend.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/zmqsend.c b/tools/zmqsend.c
index 0a1adf0f3e..d47bf216b4 100644
--- a/tools/zmqsend.c
+++ b/tools/zmqsend.c
@@ -54,7 +54,7 @@ int main(int argc, char **argv)
AVBPrint src;
char c, *src_buf, *recv_buf;
int recv_buf_size, ret;
- void *ctx, *socket;
+ void *zmq_ctx, *socket;
const char *bind_address = "tcp://localhost:5555";
const char *infilename = NULL;
FILE *infile = NULL;
@@ -88,14 +88,14 @@ int main(int argc, char **argv)
return 1;
}
- ctx = zmq_ctx_new();
- if (!ctx) {
+ zmq_ctx = zmq_ctx_new();
+ if (!zmq_ctx) {
av_log(NULL, AV_LOG_ERROR,
"Could not create ZMQ context: %s\n", zmq_strerror(errno));
return 1;
}
- socket = zmq_socket(ctx, ZMQ_REQ);
+ socket = zmq_socket(zmq_ctx, ZMQ_REQ);
if (!socket) {
av_log(NULL, AV_LOG_ERROR,
"Could not create ZMQ socket: %s\n", zmq_strerror(errno));
@@ -162,6 +162,6 @@ int main(int argc, char **argv)
end:
zmq_close(socket);
- zmq_ctx_destroy(ctx);
+ zmq_ctx_destroy(zmq_ctx);
return ret;
}