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
8018c67d
Commit
8018c67d
authored
May 22, 2009
by
JP Dinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Elide a bit of code that looks dead. There looks to be a memory leak, too.
parent
06633533
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
modules/video_filter/alphamask.c
modules/video_filter/alphamask.c
+3
-1
No files found.
modules/video_filter/alphamask.c
View file @
8018c67d
...
@@ -87,7 +87,7 @@ static int Create( vlc_object_t *p_this )
...
@@ -87,7 +87,7 @@ static int Create( vlc_object_t *p_this )
{
{
filter_t
*
p_filter
=
(
filter_t
*
)
p_this
;
filter_t
*
p_filter
=
(
filter_t
*
)
p_this
;
filter_sys_t
*
p_sys
;
filter_sys_t
*
p_sys
;
char
*
psz_string
;
char
*
psz_string
=
NULL
;
if
(
p_filter
->
fmt_in
.
video
.
i_chroma
!=
VLC_CODEC_YUVA
)
if
(
p_filter
->
fmt_in
.
video
.
i_chroma
!=
VLC_CODEC_YUVA
)
{
{
...
@@ -108,6 +108,7 @@ static int Create( vlc_object_t *p_this )
...
@@ -108,6 +108,7 @@ static int Create( vlc_object_t *p_this )
p_filter
->
p_cfg
);
p_filter
->
p_cfg
);
p_sys
->
p_mask
=
NULL
;
p_sys
->
p_mask
=
NULL
;
#if 0 /* This appears to be dead code. Where is psz_string initialized? */
if( psz_string && *psz_string )
if( psz_string && *psz_string )
{
{
LoadMask( p_filter, psz_string );
LoadMask( p_filter, psz_string );
...
@@ -116,6 +117,7 @@ static int Create( vlc_object_t *p_this )
...
@@ -116,6 +117,7 @@ static int Create( vlc_object_t *p_this )
psz_string );
psz_string );
}
}
free( psz_string );
free( psz_string );
#endif
vlc_mutex_init
(
&
p_sys
->
mask_lock
);
vlc_mutex_init
(
&
p_sys
->
mask_lock
);
psz_string
=
psz_string
=
...
...
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