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
3d428266
Commit
3d428266
authored
Aug 02, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
variables: use a more restrictive assert as all variable belong to a class.
(and also remove an unneeded include).
parent
da51bf44
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
src/misc/variables.c
src/misc/variables.c
+3
-4
No files found.
src/misc/variables.c
View file @
3d428266
...
@@ -33,7 +33,6 @@
...
@@ -33,7 +33,6 @@
#include "libvlc.h"
#include "libvlc.h"
#include "vlc_interface.h"
#include <assert.h>
#include <assert.h>
/*****************************************************************************
/*****************************************************************************
...
@@ -776,7 +775,7 @@ int var_SetChecked( vlc_object_t *p_this, const char *psz_name,
...
@@ -776,7 +775,7 @@ int var_SetChecked( vlc_object_t *p_this, const char *psz_name,
}
}
p_var
=
&
p_priv
->
p_vars
[
i_var
];
p_var
=
&
p_priv
->
p_vars
[
i_var
];
assert
(
(
p_var
->
i_type
&
VLC_VAR_CLASS
)
==
0
||
expected_type
==
0
||
assert
(
expected_type
==
0
||
(
p_var
->
i_type
&
VLC_VAR_CLASS
)
==
expected_type
);
(
p_var
->
i_type
&
VLC_VAR_CLASS
)
==
expected_type
);
/* Duplicate data if needed */
/* Duplicate data if needed */
...
@@ -829,7 +828,7 @@ int var_GetChecked( vlc_object_t *p_this, const char *psz_name,
...
@@ -829,7 +828,7 @@ int var_GetChecked( vlc_object_t *p_this, const char *psz_name,
{
{
variable_t
*
p_var
=
&
p_priv
->
p_vars
[
i_var
];
variable_t
*
p_var
=
&
p_priv
->
p_vars
[
i_var
];
assert
(
(
p_var
->
i_type
&
VLC_VAR_CLASS
)
==
0
||
expected_type
==
0
||
assert
(
expected_type
==
0
||
(
p_var
->
i_type
&
VLC_VAR_CLASS
)
==
expected_type
);
(
p_var
->
i_type
&
VLC_VAR_CLASS
)
==
expected_type
);
/* Really get the variable */
/* Really get the variable */
...
@@ -1134,7 +1133,7 @@ void var_OptionParse( vlc_object_t *p_obj, const char *psz_option,
...
@@ -1134,7 +1133,7 @@ void var_OptionParse( vlc_object_t *p_obj, const char *psz_option,
goto
cleanup
;
goto
cleanup
;
}
}
var_Set
(
p_obj
,
psz_name
,
val
);
__
var_Set
(
p_obj
,
psz_name
,
val
);
/* If that's a list, remove all elements allocated */
/* If that's a list, remove all elements allocated */
if
(
i_type
==
VLC_VAR_LIST
)
if
(
i_type
==
VLC_VAR_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