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
e444bfd2
Commit
e444bfd2
authored
Jun 12, 2006
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* 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
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/misc/stats.c
src/misc/stats.c
+5
-0
No files found.
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
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