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
001bc3d2
Commit
001bc3d2
authored
May 23, 2008
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Help to fight NULL pointer dereference in stats
parent
c3c3d074
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
src/misc/stats.c
src/misc/stats.c
+6
-1
No files found.
src/misc/stats.c
View file @
001bc3d2
...
...
@@ -32,6 +32,8 @@
#include <vlc/vlc.h>
#include <stdio.h>
/* required */
#include <assert.h>
#include "input/input_internal.h"
/*****************************************************************************
...
...
@@ -376,6 +378,7 @@ void __stats_TimerDump( vlc_object_t *p_obj, unsigned int i_id )
break
;
}
}
assert
(
p_counter
);
TimerDump
(
p_obj
,
p_counter
,
true
);
vlc_mutex_unlock
(
&
priv
->
timer_lock
);
}
...
...
@@ -581,9 +584,11 @@ static int CounterUpdate( vlc_object_t *p_handler,
static
void
TimerDump
(
vlc_object_t
*
p_obj
,
counter_t
*
p_counter
,
bool
b_total
)
{
assert
(
p_counter
);
mtime_t
last
,
total
;
int
i_total
;
if
(
!
p_counter
||
p_counter
->
i_samples
!=
2
)
if
(
p_counter
->
i_samples
!=
2
)
{
msg_Err
(
p_obj
,
"timer %s does not exist"
,
p_counter
->
psz_name
);
return
;
...
...
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