Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
e444bfd2
Commit
e444bfd2
authored
Jun 12, 2006
by
gbazin
Browse files
* src/misc/stats.c: don't forget to call vlc_object_release() after a stats_HandlerGet().
parent
fab2e7bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/misc/stats.c
View file @
e444bfd2
...
...
@@ -111,6 +111,7 @@ int __stats_Create( vlc_object_t *p_this, const char *psz_name, unsigned int i_i
p_handler
->
i_counters
,
p_counter
);
vlc_mutex_unlock
(
&
p_handler
->
object_lock
);
vlc_object_release
(
p_handler
);
return
VLC_SUCCESS
;
}
...
...
@@ -146,6 +147,7 @@ int __stats_Update( vlc_object_t *p_this, unsigned int i_counter,
i_ret
=
stats_CounterUpdate
(
p_handler
,
p_counter
,
val
,
val_new
);
vlc_mutex_unlock
(
&
p_handler
->
object_lock
);
vlc_object_release
(
p_handler
);
return
i_ret
;
}
...
...
@@ -184,6 +186,7 @@ int __stats_Get( vlc_object_t *p_this, int i_object_id,
if
(
p_counter
->
i_samples
==
0
)
{
vlc_mutex_unlock
(
&
p_handler
->
object_lock
);
vlc_object_release
(
p_handler
);
val
->
i_int
=
val
->
f_float
=
0
.
0
;
return
VLC_EGENERIC
;
}
...
...
@@ -201,6 +204,7 @@ int __stats_Get( vlc_object_t *p_this, int i_object_id,
if
(
p_counter
->
i_samples
<
2
)
{
vlc_mutex_unlock
(
&
p_handler
->
object_lock
);
vlc_object_release
(
p_handler
);
val
->
i_int
=
0
;
val
->
f_float
=
0
.
0
;
return
VLC_EGENERIC
;
}
...
...
@@ -474,6 +478,7 @@ void __stats_TimersDumpAll( vlc_object_t *p_obj )
}
}
vlc_mutex_unlock
(
&
p_handler
->
object_lock
);
vlc_object_release
(
p_handler
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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