Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
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