Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
b26dd076
Commit
b26dd076
authored
Sep 19, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/video_filter/logo.c: couple of sanity check.
parent
a782a305
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
modules/video_filter/logo.c
modules/video_filter/logo.c
+7
-3
No files found.
modules/video_filter/logo.c
View file @
b26dd076
...
@@ -110,11 +110,15 @@ static picture_t *LoadPNG( vlc_object_t *p_this )
...
@@ -110,11 +110,15 @@ static picture_t *LoadPNG( vlc_object_t *p_this )
var_Create
(
p_this
,
"logo-file"
,
VLC_VAR_STRING
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_this
,
"logo-file"
,
VLC_VAR_STRING
|
VLC_VAR_DOINHERIT
);
var_Get
(
p_this
,
"logo-file"
,
&
val
);
var_Get
(
p_this
,
"logo-file"
,
&
val
);
psz_filename
=
val
.
psz_string
;
psz_filename
=
val
.
psz_string
;
if
(
!
psz_filename
)
return
0
;
if
(
!
psz_filename
||
!*
psz_filename
)
{
msg_Err
(
p_this
,
"logo file not specified"
);
return
0
;
}
if
(
!
(
file
=
fopen
(
psz_filename
,
"rb"
))
)
if
(
!
(
file
=
fopen
(
psz_filename
,
"rb"
))
)
{
{
msg_Err
(
p_this
,
"logo file (%s) not found"
,
psz_filename
);
msg_Err
(
p_this
,
"logo file (%s) not found"
,
psz_filename
);
free
(
psz_filename
);
free
(
psz_filename
);
return
0
;
return
0
;
}
}
...
@@ -168,7 +172,7 @@ static picture_t *LoadPNG( vlc_object_t *p_this )
...
@@ -168,7 +172,7 @@ static picture_t *LoadPNG( vlc_object_t *p_this )
var_Create
(
p_this
,
"logo-transparency"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_this
,
"logo-transparency"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Get
(
p_this
,
"logo-transparency"
,
&
val
);
var_Get
(
p_this
,
"logo-transparency"
,
&
val
);
i_trans
=
val
.
i_int
;
i_trans
=
__MAX
(
__MIN
(
val
.
i_int
,
255
),
0
)
;
for
(
j
=
0
;
j
<
(
int
)
i_height
;
j
++
)
for
(
j
=
0
;
j
<
(
int
)
i_height
;
j
++
)
{
{
...
...
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