Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
b25c2e85
Commit
b25c2e85
authored
Mar 08, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid ugly non-const cast
parent
7146789f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
src/misc/variables.c
src/misc/variables.c
+7
-8
No files found.
src/misc/variables.c
View file @
b25c2e85
/*****************************************************************************
* variables.c: routines for object variables handling
*****************************************************************************
* Copyright (C) 2002-200
4
the VideoLAN team
* Copyright (C) 2002-200
6
the VideoLAN team
* $Id$
*
* Authors: Samuel Hocevar <sam@zoy.org>
...
...
@@ -926,10 +926,9 @@ int __var_DelCallback( vlc_object_t *p_this, const char *psz_name,
* \param psz_option the option to parse
* \return nothing
*/
void
__var_OptionParse
(
vlc_object_t
*
p_obj
,
const
char
*
psz_option
)
void
__var_OptionParse
(
vlc_object_t
*
p_obj
,
const
char
*
psz_option
)
{
char
*
psz_name
=
(
char
*
)
psz_option
;
char
*
psz_value
=
strchr
(
psz_option
,
'='
);
char
*
psz_name
,
*
psz_value
=
strchr
(
psz_option
,
'='
);
int
i_name_len
,
i_type
;
vlc_bool_t
b_isno
=
VLC_FALSE
;
vlc_value_t
val
;
...
...
@@ -939,15 +938,15 @@ void __var_OptionParse( vlc_object_t *p_obj,const char *psz_option )
/* It's too much of an hassle to remove the ':' when we parse
* the cmd line :) */
if
(
i_name_len
&&
*
psz_
name
==
':'
)
if
(
i_name_len
&&
*
psz_
option
==
':'
)
{
psz_
name
++
;
psz_
option
++
;
i_name_len
--
;
}
if
(
i_name_len
==
0
)
return
;
psz_name
=
strndup
(
psz_
name
,
i_name_len
);
psz_name
=
strndup
(
psz_
option
,
i_name_len
);
if
(
psz_value
)
psz_value
++
;
/* FIXME: :programs should be handled generically */
...
...
@@ -1252,7 +1251,7 @@ static int LookupInner( variable_t *p_vars, int i_count, uint32_t i_hash )
* This function checks p_val's value against p_var's limitations such as
* minimal and maximal value, step, in-list position, and modifies p_val if
* necessary.
****************************************************************************
*
/
****************************************************************************/
static
void
CheckValue
(
variable_t
*
p_var
,
vlc_value_t
*
p_val
)
{
/* Check that our variable is in the list */
...
...
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