Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
f8b16acb
Commit
f8b16acb
authored
Oct 21, 2013
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Windows store: don't call read() before poll() on network sockets
parent
d479eec4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
src/network/io.c
src/network/io.c
+14
-1
No files found.
src/network/io.c
View file @
f8b16acb
...
...
@@ -268,6 +268,17 @@ net_Read (vlc_object_t *restrict p_this, int fd, const v_socket_t *vs,
ufd
[
1
].
events
=
POLLIN
;
size_t
i_total
=
0
;
#if VLC_WINSTORE_APP
/* With winrtsock winsocks emulation library, the first call to read()
* before poll() starts an asynchronous transfer and returns 0.
* Always call poll() first.
*
* However if we have a virtual socket handler, try to read() first.
* See bug #8972 for details.
*/
if
(
vs
==
NULL
)
goto
do_poll
;
#endif
do
{
ssize_t
n
;
...
...
@@ -325,7 +336,9 @@ net_Read (vlc_object_t *restrict p_this, int fd, const v_socket_t *vs,
errno
=
EINTR
;
return
-
1
;
}
#if VLC_WINSTORE_APP
do_poll:
#endif
/* Wait for more data */
if
(
poll
(
ufd
,
sizeof
(
ufd
)
/
sizeof
(
ufd
[
0
]),
-
1
)
<
0
)
{
...
...
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