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
e95a471c
Commit
e95a471c
authored
Oct 11, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Decomp: partially fix error handling
parent
fab9038a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
modules/demux/decomp.c
modules/demux/decomp.c
+4
-1
No files found.
modules/demux/decomp.c
View file @
e95a471c
...
@@ -81,10 +81,11 @@ static void *Thread (void *data)
...
@@ -81,10 +81,11 @@ static void *Thread (void *data)
demux_t
*
demux
=
data
;
demux_t
*
demux
=
data
;
demux_sys_t
*
p_sys
=
demux
->
p_sys
;
demux_sys_t
*
p_sys
=
demux
->
p_sys
;
int
fd
=
p_sys
->
write_fd
;
int
fd
=
p_sys
->
write_fd
;
bool
error
=
false
;
vlc_cleanup_push
(
cleanup_fd
,
(
void
*
)(
intptr_t
)
fd
);
vlc_cleanup_push
(
cleanup_fd
,
(
void
*
)(
intptr_t
)
fd
);
for
(;;)
do
{
{
#ifdef __linux__
#ifdef __linux__
/* TODO: mmap() + vmsplice() */
/* TODO: mmap() + vmsplice() */
...
@@ -104,10 +105,12 @@ static void *Thread (void *data)
...
@@ -104,10 +105,12 @@ static void *Thread (void *data)
if
(
j
==
-
1
)
if
(
j
==
-
1
)
{
{
msg_Err
(
demux
,
"cannot write data (%m)"
);
msg_Err
(
demux
,
"cannot write data (%m)"
);
error
=
true
;
break
;
break
;
}
}
}
}
}
}
while
(
!
error
);
vlc_cleanup_run
();
/* close(fd) */
vlc_cleanup_run
();
/* close(fd) */
return
NULL
;
return
NULL
;
...
...
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