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
8b7c6b3d
Commit
8b7c6b3d
authored
Feb 17, 2009
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fb: initialize p_sys->p_video to MAP_FAILED.
parent
e4d9dab6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
modules/video_output/fb.c
modules/video_output/fb.c
+3
-2
No files found.
modules/video_output/fb.c
View file @
8b7c6b3d
...
...
@@ -191,6 +191,8 @@ static int Create( vlc_object_t *p_this )
return
VLC_ENOMEM
;
memset
(
p_sys
,
0
,
sizeof
(
vout_sys_t
)
);
p_sys
->
p_video
=
MAP_FAILED
;
p_vout
->
pf_init
=
Init
;
p_vout
->
pf_end
=
End
;
p_vout
->
pf_manage
=
Manage
;
...
...
@@ -941,8 +943,7 @@ static int OpenDisplay( vout_thread_t *p_vout )
*****************************************************************************/
static
void
CloseDisplay
(
vout_thread_t
*
p_vout
)
{
if
(
p_vout
->
p_sys
->
p_video
!=
NULL
&&
p_vout
->
p_sys
->
p_video
!=
MAP_FAILED
)
if
(
p_vout
->
p_sys
->
p_video
!=
MAP_FAILED
)
{
/* Clear display */
memset
(
p_vout
->
p_sys
->
p_video
,
0
,
p_vout
->
p_sys
->
i_page_size
);
...
...
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