Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
bd26b5fa
Commit
bd26b5fa
authored
Feb 09, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle waitpipe error failures.
parent
db3a33e4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
src/network/io.c
src/network/io.c
+5
-6
No files found.
src/network/io.c
View file @
bd26b5fa
...
...
@@ -272,17 +272,16 @@ __net_Read (vlc_object_t *restrict p_this, int fd, const v_socket_t *vs,
size_t
i_total
=
0
;
struct
pollfd
ufd
[
2
]
=
{
{
.
fd
=
fd
,
.
events
=
POLLIN
},
{
.
fd
=
-
1
,
.
events
=
POLLIN
},
{
.
fd
=
vlc_object_waitpipe
(
p_this
)
,
.
events
=
POLLIN
},
};
if
(
ufd
[
1
].
fd
==
-
1
)
return
-
1
;
/* vlc_object_waitpipe() sets errno */
while
(
i_buflen
>
0
)
{
int
val
;
ufd
[
1
].
fd
=
vlc_object_waitpipe
(
p_this
);
if
(
ufd
[
1
].
fd
==
-
1
)
{
}
ufd
[
0
].
revents
=
ufd
[
1
].
revents
=
0
;
val
=
poll
(
ufd
,
sizeof
(
ufd
)
/
sizeof
(
ufd
[
0
]),
-
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