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
de19a1c7
Commit
de19a1c7
authored
Apr 29, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initialize variables
parent
a10232da
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
include/variables.h
include/variables.h
+5
-5
include/vlc_messages.h
include/vlc_messages.h
+4
-4
No files found.
include/variables.h
View file @
de19a1c7
...
@@ -336,7 +336,7 @@ static inline int __var_SetVoid( vlc_object_t *p_obj, const char *psz_name )
...
@@ -336,7 +336,7 @@ static inline int __var_SetVoid( vlc_object_t *p_obj, const char *psz_name )
*/
*/
static
inline
int
__var_GetInteger
(
vlc_object_t
*
p_obj
,
const
char
*
psz_name
)
static
inline
int
__var_GetInteger
(
vlc_object_t
*
p_obj
,
const
char
*
psz_name
)
{
{
vlc_value_t
val
;
vlc_value_t
val
;
val
.
i_int
=
0
;
if
(
!
__var_Get
(
p_obj
,
psz_name
,
&
val
)
)
if
(
!
__var_Get
(
p_obj
,
psz_name
,
&
val
)
)
return
val
.
i_int
;
return
val
.
i_int
;
else
else
...
@@ -351,7 +351,7 @@ static inline int __var_GetInteger( vlc_object_t *p_obj, const char *psz_name )
...
@@ -351,7 +351,7 @@ static inline int __var_GetInteger( vlc_object_t *p_obj, const char *psz_name )
*/
*/
static
inline
int
__var_GetBool
(
vlc_object_t
*
p_obj
,
const
char
*
psz_name
)
static
inline
int
__var_GetBool
(
vlc_object_t
*
p_obj
,
const
char
*
psz_name
)
{
{
vlc_value_t
val
;
vlc_value_t
val
;
val
.
b_bool
=
VLC_FALSE
;
if
(
!
__var_Get
(
p_obj
,
psz_name
,
&
val
)
)
if
(
!
__var_Get
(
p_obj
,
psz_name
,
&
val
)
)
return
val
.
b_bool
;
return
val
.
b_bool
;
else
else
...
@@ -366,7 +366,7 @@ static inline int __var_GetBool( vlc_object_t *p_obj, const char *psz_name )
...
@@ -366,7 +366,7 @@ static inline int __var_GetBool( vlc_object_t *p_obj, const char *psz_name )
*/
*/
static
inline
int64_t
__var_GetTime
(
vlc_object_t
*
p_obj
,
const
char
*
psz_name
)
static
inline
int64_t
__var_GetTime
(
vlc_object_t
*
p_obj
,
const
char
*
psz_name
)
{
{
vlc_value_t
val
;
vlc_value_t
val
;
val
.
i_time
=
0L
;
if
(
!
__var_Get
(
p_obj
,
psz_name
,
&
val
)
)
if
(
!
__var_Get
(
p_obj
,
psz_name
,
&
val
)
)
return
val
.
i_time
;
return
val
.
i_time
;
else
else
...
@@ -381,7 +381,7 @@ static inline int64_t __var_GetTime( vlc_object_t *p_obj, const char *psz_name )
...
@@ -381,7 +381,7 @@ static inline int64_t __var_GetTime( vlc_object_t *p_obj, const char *psz_name )
*/
*/
static
inline
float
__var_GetFloat
(
vlc_object_t
*
p_obj
,
const
char
*
psz_name
)
static
inline
float
__var_GetFloat
(
vlc_object_t
*
p_obj
,
const
char
*
psz_name
)
{
{
vlc_value_t
val
;
vlc_value_t
val
;
val
.
f_float
=
0
.
0
;
if
(
!
__var_Get
(
p_obj
,
psz_name
,
&
val
)
)
if
(
!
__var_Get
(
p_obj
,
psz_name
,
&
val
)
)
return
val
.
f_float
;
return
val
.
f_float
;
else
else
...
@@ -396,7 +396,7 @@ static inline float __var_GetFloat( vlc_object_t *p_obj, const char *psz_name )
...
@@ -396,7 +396,7 @@ static inline float __var_GetFloat( vlc_object_t *p_obj, const char *psz_name )
*/
*/
static
inline
char
*
__var_GetString
(
vlc_object_t
*
p_obj
,
const
char
*
psz_name
)
static
inline
char
*
__var_GetString
(
vlc_object_t
*
p_obj
,
const
char
*
psz_name
)
{
{
vlc_value_t
val
;
vlc_value_t
val
;
val
.
psz_string
=
NULL
;
if
(
!
__var_Get
(
p_obj
,
psz_name
,
&
val
)
)
if
(
!
__var_Get
(
p_obj
,
psz_name
,
&
val
)
)
return
val
.
psz_string
;
return
val
.
psz_string
;
else
else
...
...
include/vlc_messages.h
View file @
de19a1c7
...
@@ -290,7 +290,7 @@ VLC_EXPORT( counter_t*, __stats_CounterGet, (vlc_object_t*, int, unsigned int )
...
@@ -290,7 +290,7 @@ VLC_EXPORT( counter_t*, __stats_CounterGet, (vlc_object_t*, int, unsigned int )
static
inline
int
__stats_GetInteger
(
vlc_object_t
*
p_obj
,
int
i_id
,
static
inline
int
__stats_GetInteger
(
vlc_object_t
*
p_obj
,
int
i_id
,
unsigned
int
i_counter
,
int
*
value
)
unsigned
int
i_counter
,
int
*
value
)
{
{
vlc_value_t
val
;
vlc_value_t
val
;
val
.
i_int
=
0
;
int
i_ret
=
__stats_Get
(
p_obj
,
i_id
,
i_counter
,
&
val
);
int
i_ret
=
__stats_Get
(
p_obj
,
i_id
,
i_counter
,
&
val
);
*
value
=
val
.
i_int
;
*
value
=
val
.
i_int
;
return
i_ret
;
return
i_ret
;
...
@@ -300,7 +300,7 @@ static inline int __stats_GetInteger( vlc_object_t *p_obj, int i_id,
...
@@ -300,7 +300,7 @@ static inline int __stats_GetInteger( vlc_object_t *p_obj, int i_id,
static
inline
int
__stats_GetFloat
(
vlc_object_t
*
p_obj
,
int
i_id
,
static
inline
int
__stats_GetFloat
(
vlc_object_t
*
p_obj
,
int
i_id
,
unsigned
int
i_counter
,
float
*
value
)
unsigned
int
i_counter
,
float
*
value
)
{
{
vlc_value_t
val
;
vlc_value_t
val
;
val
.
f_float
=
0
.
0
;
int
i_ret
=
__stats_Get
(
p_obj
,
i_id
,
i_counter
,
&
val
);
int
i_ret
=
__stats_Get
(
p_obj
,
i_id
,
i_counter
,
&
val
);
*
value
=
val
.
f_float
;
*
value
=
val
.
f_float
;
return
i_ret
;
return
i_ret
;
...
@@ -312,7 +312,7 @@ static inline int __stats_UpdateInteger( vlc_object_t *p_obj,
...
@@ -312,7 +312,7 @@ static inline int __stats_UpdateInteger( vlc_object_t *p_obj,
{
{
int
i_ret
;
int
i_ret
;
vlc_value_t
val
;
vlc_value_t
val
;
vlc_value_t
new_val
;
vlc_value_t
new_val
;
new_val
.
i_int
=
0
;
val
.
i_int
=
i
;
val
.
i_int
=
i
;
i_ret
=
__stats_Update
(
p_obj
,
i_counter
,
val
,
&
new_val
);
i_ret
=
__stats_Update
(
p_obj
,
i_counter
,
val
,
&
new_val
);
if
(
pi_new
)
if
(
pi_new
)
...
@@ -326,7 +326,7 @@ static inline int __stats_UpdateFloat( vlc_object_t *p_obj,
...
@@ -326,7 +326,7 @@ static inline int __stats_UpdateFloat( vlc_object_t *p_obj,
{
{
vlc_value_t
val
;
vlc_value_t
val
;
int
i_ret
;
int
i_ret
;
vlc_value_t
new_val
;
vlc_value_t
new_val
;
new_val
.
f_float
=
0
.
0
;
val
.
f_float
=
f
;
val
.
f_float
=
f
;
i_ret
=
__stats_Update
(
p_obj
,
i_counter
,
val
,
&
new_val
);
i_ret
=
__stats_Update
(
p_obj
,
i_counter
,
val
,
&
new_val
);
if
(
pf_new
)
if
(
pf_new
)
...
...
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