Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
aafc08e4
Commit
aafc08e4
authored
Oct 01, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove useless test. At that point, p_sys is not NULL
parent
5e7be2ae
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
15 deletions
+7
-15
modules/video_output/msw/direct3d.c
modules/video_output/msw/direct3d.c
+3
-5
modules/video_output/msw/glwin32.c
modules/video_output/msw/glwin32.c
+2
-5
modules/video_output/msw/wingdi.c
modules/video_output/msw/wingdi.c
+2
-5
No files found.
modules/video_output/msw/direct3d.c
View file @
aafc08e4
...
...
@@ -154,6 +154,7 @@ static int OpenVideo( vlc_object_t *p_this )
p_vout
->
p_sys
=
malloc
(
sizeof
(
vout_sys_t
)
);
if
(
p_vout
->
p_sys
==
NULL
)
return
VLC_ENOMEM
;
memset
(
p_vout
->
p_sys
,
0
,
sizeof
(
vout_sys_t
)
);
if
(
VLC_SUCCESS
!=
Direct3DVoutCreate
(
p_vout
)
)
...
...
@@ -307,11 +308,8 @@ static void CloseVideo( vlc_object_t *p_this )
p_vout
->
p_sys
->
i_spi_screensavetimeout
,
NULL
,
0
);
}
if
(
p_vout
->
p_sys
)
{
free
(
p_vout
->
p_sys
);
p_vout
->
p_sys
=
NULL
;
}
free
(
p_vout
->
p_sys
);
p_vout
->
p_sys
=
NULL
;
}
/*****************************************************************************
...
...
modules/video_output/msw/glwin32.c
View file @
aafc08e4
...
...
@@ -246,11 +246,8 @@ static void CloseVideo( vlc_object_t *p_this )
vlc_mutex_destroy
(
&
p_vout
->
p_sys
->
lock
);
if
(
p_vout
->
p_sys
)
{
free
(
p_vout
->
p_sys
);
p_vout
->
p_sys
=
NULL
;
}
free
(
p_vout
->
p_sys
);
p_vout
->
p_sys
=
NULL
;
}
/*****************************************************************************
...
...
modules/video_output/msw/wingdi.c
View file @
aafc08e4
...
...
@@ -358,11 +358,8 @@ static void CloseVideo ( vlc_object_t *p_this )
FreeLibrary
(
p_vout
->
p_sys
->
gapi_dll
);
#endif
if
(
p_vout
->
p_sys
)
{
free
(
p_vout
->
p_sys
);
p_vout
->
p_sys
=
NULL
;
}
free
(
p_vout
->
p_sys
);
p_vout
->
p_sys
=
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