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
48d3c3a8
Commit
48d3c3a8
authored
Aug 27, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
logo: remove an uneeded variable.
parent
cd579fd8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
16 deletions
+5
-16
modules/video_filter/logo.c
modules/video_filter/logo.c
+5
-16
No files found.
modules/video_filter/logo.c
View file @
48d3c3a8
...
...
@@ -121,7 +121,6 @@ vlc_module_end ()
*/
typedef
struct
{
char
*
psz_file
;
/* candidate for deletion -- not needed */
int
i_delay
;
/* -1 means use default delay */
int
i_alpha
;
/* -1 means use default alpha */
picture_t
*
p_pic
;
...
...
@@ -596,7 +595,7 @@ static int LogoCallback( vlc_object_t *p_this, char const *psz_var,
/**
* It loads the logo image into memory.
*/
static
picture_t
*
LoadImage
(
vlc_object_t
*
p_this
,
char
*
psz_filename
)
static
picture_t
*
LoadImage
(
vlc_object_t
*
p_this
,
c
onst
c
har
*
psz_filename
)
{
if
(
!
psz_filename
)
return
NULL
;
...
...
@@ -679,25 +678,19 @@ static void LogoListLoad( vlc_object_t *p_this, logo_list_t *p_logo_list,
*
p_c
=
'\0'
;
}
p_logo
[
i
].
psz_file
=
strdup
(
psz_list
);
p_logo
[
i
].
p_pic
=
LoadImage
(
p_this
,
p_logo
[
i
].
psz_file
);
msg_Dbg
(
p_this
,
"logo file name %s, delay %d, alpha %d"
,
psz_list
,
p_logo
[
i
].
i_delay
,
p_logo
[
i
].
i_alpha
);
p_logo
[
i
].
p_pic
=
LoadImage
(
p_this
,
psz_list
);
if
(
!
p_logo
[
i
].
p_pic
)
{
msg_Warn
(
p_this
,
"error while loading logo %s, will be skipped"
,
p
_logo
[
i
].
psz_file
);
p
sz_list
);
}
if
(
p_c
)
psz_list
=
&
p_c
[
1
];
}
for
(
i
=
0
;
i
<
p_logo_list
->
i_count
;
i
++
)
{
msg_Dbg
(
p_this
,
"logo file name %s, delay %d, alpha %d"
,
p_logo
[
i
].
psz_file
,
p_logo
[
i
].
i_delay
,
p_logo
[
i
].
i_alpha
);
}
/* initialize so that on the first update it will wrap back to 0 */
p_logo_list
->
i_counter
=
p_logo_list
->
i_count
-
1
;
...
...
@@ -713,12 +706,8 @@ static void LogoListUnload( logo_list_t *p_list )
{
logo_t
*
p_logo
=
&
p_list
->
p_logo
[
i
];
free
(
p_logo
->
psz_file
);
if
(
p_logo
->
p_pic
)
{
picture_Release
(
p_logo
->
p_pic
);
p_logo
->
p_pic
=
NULL
;
}
}
free
(
p_list
->
p_logo
);
}
...
...
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