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
ef69c0b3
Commit
ef69c0b3
authored
Nov 29, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hard-code stats update interval
Only 1 second interval has ever been used.
parent
a1f861a0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
10 deletions
+1
-10
src/input/input.c
src/input/input.c
+0
-7
src/libvlc.h
src/libvlc.h
+0
-1
src/misc/stats.c
src/misc/stats.c
+1
-2
No files found.
src/input/input.c
View file @
ef69c0b3
...
...
@@ -872,10 +872,6 @@ static void InitStatistics( input_thread_t * p_input )
p_input
->
p
->
counters
.
p_sout_send_bitrate
=
NULL
;
p_input
->
p
->
counters
.
p_sout_sent_packets
=
NULL
;
p_input
->
p
->
counters
.
p_sout_sent_bytes
=
NULL
;
if
(
p_input
->
p
->
counters
.
p_demux_bitrate
)
p_input
->
p
->
counters
.
p_demux_bitrate
->
update_interval
=
1000000
;
if
(
p_input
->
p
->
counters
.
p_input_bitrate
)
p_input
->
p
->
counters
.
p_input_bitrate
->
update_interval
=
1000000
;
}
}
...
...
@@ -903,9 +899,6 @@ static int InitSout( input_thread_t * p_input )
INIT_COUNTER
(
sout_sent_packets
,
INTEGER
,
COUNTER
);
INIT_COUNTER
(
sout_sent_bytes
,
INTEGER
,
COUNTER
);
INIT_COUNTER
(
sout_send_bitrate
,
FLOAT
,
DERIVATIVE
);
if
(
p_input
->
p
->
counters
.
p_sout_send_bitrate
)
p_input
->
p
->
counters
.
p_sout_send_bitrate
->
update_interval
=
1000000
;
}
}
else
...
...
src/libvlc.h
View file @
ef69c0b3
...
...
@@ -241,7 +241,6 @@ typedef struct counter_t
int
i_samples
;
counter_sample_t
**
pp_samples
;
mtime_t
update_interval
;
mtime_t
last_update
;
}
counter_t
;
...
...
src/misc/stats.c
View file @
ef69c0b3
...
...
@@ -63,7 +63,6 @@ counter_t * stats_CounterCreate( int i_type, int i_compute_type )
p_counter
->
i_samples
=
0
;
p_counter
->
pp_samples
=
NULL
;
p_counter
->
update_interval
=
0
;
p_counter
->
last_update
=
0
;
return
p_counter
;
...
...
@@ -253,7 +252,7 @@ static int CounterUpdate( counter_t *p_counter,
{
counter_sample_t
*
p_new
,
*
p_old
;
mtime_t
now
=
mdate
();
if
(
now
-
p_counter
->
last_update
<
p_counter
->
update_interval
)
if
(
now
-
p_counter
->
last_update
<
CLOCK_FREQ
)
{
return
VLC_EGENERIC
;
}
...
...
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