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
072b0670
Commit
072b0670
authored
Mar 26, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decomp: handle memory error
parent
90f46a51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
modules/stream_filter/decomp.c
modules/stream_filter/decomp.c
+3
-1
No files found.
modules/stream_filter/decomp.c
View file @
072b0670
...
...
@@ -95,7 +95,7 @@ static void *Thread (void *data)
stream_t
*
stream
=
data
;
stream_sys_t
*
p_sys
=
stream
->
p_sys
;
#ifdef HAVE_VMSPLICE
ssize_t
page_mask
=
sysconf
(
_SC_PAGE_SIZE
)
-
1
;
const
ssize_t
page_mask
=
sysconf
(
_SC_PAGE_SIZE
)
-
1
;
#endif
int
fd
=
p_sys
->
write_fd
;
bool
error
=
false
;
...
...
@@ -107,6 +107,8 @@ static void *Thread (void *data)
#ifdef HAVE_VMSPLICE
unsigned
char
*
buf
=
mmap
(
NULL
,
bufsize
,
PROT_READ
|
PROT_WRITE
,
MAP_PRIVATE
|
MAP_ANONYMOUS
,
-
1
,
0
);
if
(
unlikely
(
buf
==
MAP_FAILED
))
break
;
vlc_cleanup_push
(
cleanup_mmap
,
buf
);
#else
unsigned
char
buf
[
bufsize
];
...
...
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