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
443cd08b
Commit
443cd08b
authored
Mar 31, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
logo-file is NOT 6 characters. strcmp() is -hopefully- your friend.
parent
cf0904ee
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
modules/video_filter/logo.c
modules/video_filter/logo.c
+6
-7
No files found.
modules/video_filter/logo.c
View file @
443cd08b
...
@@ -909,34 +909,33 @@ static int LogoCallback( vlc_object_t *p_this, char const *psz_var,
...
@@ -909,34 +909,33 @@ static int LogoCallback( vlc_object_t *p_this, char const *psz_var,
filter_sys_t
*
p_sys
=
(
filter_sys_t
*
)
p_data
;
filter_sys_t
*
p_sys
=
(
filter_sys_t
*
)
p_data
;
logo_list_t
*
p_logo_list
=
p_sys
->
p_logo_list
;
logo_list_t
*
p_logo_list
=
p_sys
->
p_logo_list
;
if
(
!
str
ncmp
(
psz_var
,
"logo-file"
,
6
)
)
if
(
!
str
cmp
(
psz_var
,
"logo-file"
)
)
{
{
vlc_mutex_lock
(
&
p_logo_list
->
lock
);
vlc_mutex_lock
(
&
p_logo_list
->
lock
);
FreeLogoList
(
p_logo_list
);
FreeLogoList
(
p_logo_list
);
p_logo_list
->
psz_filename
=
strdup
(
newval
.
psz_string
);
p_logo_list
->
psz_filename
=
strdup
(
newval
.
psz_string
);
LoadLogoList
(
p_this
,
p_logo_list
);
LoadLogoList
(
p_this
,
p_logo_list
);
vlc_mutex_unlock
(
&
p_logo_list
->
lock
);
vlc_mutex_unlock
(
&
p_logo_list
->
lock
);
p_sys
->
b_need_update
=
true
;
}
}
else
if
(
!
str
ncmp
(
psz_var
,
"logo-x"
,
6
)
)
else
if
(
!
str
cmp
(
psz_var
,
"logo-x"
)
)
{
{
p_sys
->
posx
=
newval
.
i_int
;
p_sys
->
posx
=
newval
.
i_int
;
}
}
else
if
(
!
strncmp
(
psz_var
,
"logo-y"
,
6
)
)
else
if
(
!
strncmp
(
psz_var
,
"logo-y"
)
)
{
{
p_sys
->
posy
=
newval
.
i_int
;
p_sys
->
posy
=
newval
.
i_int
;
}
}
else
if
(
!
str
ncmp
(
psz_var
,
"logo-position"
,
12
)
)
else
if
(
!
str
cmp
(
psz_var
,
"logo-position"
)
)
{
{
p_sys
->
pos
=
newval
.
i_int
;
p_sys
->
pos
=
newval
.
i_int
;
}
}
else
if
(
!
str
ncmp
(
psz_var
,
"logo-transparency"
,
9
)
)
else
if
(
!
str
cmp
(
psz_var
,
"logo-transparency"
)
)
{
{
vlc_mutex_lock
(
&
p_logo_list
->
lock
);
vlc_mutex_lock
(
&
p_logo_list
->
lock
);
p_logo_list
->
i_alpha
=
__MAX
(
__MIN
(
newval
.
i_int
,
255
),
0
);
p_logo_list
->
i_alpha
=
__MAX
(
__MIN
(
newval
.
i_int
,
255
),
0
);
vlc_mutex_unlock
(
&
p_logo_list
->
lock
);
vlc_mutex_unlock
(
&
p_logo_list
->
lock
);
}
}
else
if
(
!
str
ncmp
(
psz_var
,
"logo-repeat"
,
11
)
)
else
if
(
!
str
cmp
(
psz_var
,
"logo-repeat"
)
)
{
{
vlc_mutex_lock
(
&
p_logo_list
->
lock
);
vlc_mutex_lock
(
&
p_logo_list
->
lock
);
p_logo_list
->
i_repeat
=
newval
.
i_int
;
p_logo_list
->
i_repeat
=
newval
.
i_int
;
...
...
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