Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
f52a83cc
Commit
f52a83cc
authored
Jun 19, 2011
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vlclua_net_recv() : do like [
b0d7c77b
] did for vlclua_fd_read()
parent
03a0c3a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
modules/lua/libs/net.c
modules/lua/libs/net.c
+4
-1
No files found.
modules/lua/libs/net.c
View file @
f52a83cc
...
...
@@ -190,7 +190,10 @@ static int vlclua_net_recv( lua_State *L )
size_t
i_len
=
luaL_optint
(
L
,
2
,
1
);
char
psz_buffer
[
i_len
];
ssize_t
i_ret
=
recv
(
i_fd
,
psz_buffer
,
i_len
,
0
);
lua_pushlstring
(
L
,
psz_buffer
,
(
i_ret
>=
0
)
?
i_ret
:
0
);
if
(
i_ret
>
0
)
lua_pushlstring
(
L
,
psz_buffer
,
i_ret
);
else
lua_pushnil
(
L
);
return
1
;
}
...
...
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