Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Dröge
libndi
Commits
af05c336
Commit
af05c336
authored
Jun 23, 2020
by
Jean-Baptiste Kempf
Browse files
libndi: Iterate over pending requests
Do not hardcode a specific number.
parent
f4bf28d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
libndi.c
View file @
af05c336
...
...
@@ -424,7 +424,8 @@ static int receive_ndi_packet(ndi_ctx *ndi_ctx)
static
int
request_ndi_data
(
ndi_ctx
*
ndi_ctx
)
{
for
(
int
i
=
0
;
i
<
4
;
i
++
)
{
int
pending
=
ndi_ctx
->
pending_requests
;
for
(
int
i
=
0
;
i
<
pending
;
i
++
)
{
ndi_message
*
ndi_request
=
&
ndi_ctx
->
ndi_request
[
i
];
// XXX: Check failure
send
(
ndi_ctx
->
socket_fd
,
(
void
*
)
ndi_request
->
buf
,
ndi_request
->
len
,
0
);
...
...
Write
Preview
Supports
Markdown
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