Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
129ce05b
Commit
129ce05b
authored
Dec 23, 2013
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools/zmqsend: rename ctx to zmq_ctx
The new name is more explicit.
parent
dd00f9ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
zmqsend.c
tools/zmqsend.c
+5
-5
No files found.
tools/zmqsend.c
View file @
129ce05b
...
...
@@ -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
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment