Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
20b1d95d
Commit
20b1d95d
authored
Mar 31, 2003
by
Laurent Aimar
Browse files
* v4l: forgot a munmap.
parent
8c1b6050
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/access/v4l/v4l.c
View file @
20b1d95d
...
...
@@ -2,7 +2,7 @@
* v4l.c : Video4Linux input module for vlc
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: v4l.c,v 1.
5
2003/03/31 0
3:4
6:1
1
fenrir Exp $
* $Id: v4l.c,v 1.
6
2003/03/31 0
4:2
6:1
7
fenrir Exp $
*
* Author: Samuel Hocevar <sam@zoy.org>
*
...
...
@@ -829,6 +829,16 @@ static void AccessClose( vlc_object_t *p_this )
free
(
p_sys
->
psz_video_device
);
close
(
p_sys
->
fd
);
if
(
p_sys
->
p_video_mmap
)
{
munmap
(
p_sys
->
p_video_mmap
,
p_sys
->
vid_mbuf
.
size
)
}
#ifdef _V4L_AUDIO_
if
(
p_sys
->
fd_audio
>=
0
)
{
close
(
p_sys
->
fd_audio
);
}
#endif
if
(
p_sys
->
p_encoder
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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