Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
f04a7c62
Commit
f04a7c62
authored
Feb 15, 2014
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stats: calculate dts difference if there is actually difference
parent
47abb64a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
modules/stream_out/stats.c
modules/stream_out/stats.c
+5
-2
No files found.
modules/stream_out/stats.c
View file @
f04a7c62
...
...
@@ -226,16 +226,19 @@ static int Send( sout_stream_t *p_stream, sout_stream_id_sys_t *id,
/* We could just set p_sys->output to stdout and remove user of msg_Dbg
* if we don't need ability to output info to gui modules (like qt4 messages window
*/
mtime_t
dts_difference
=
VLC_TS_INVALID
;
if
(
likely
(
id
->
previous_dts
!=
VLC_TS_INVALID
)
)
dts_difference
=
p_block
->
i_dts
-
id
->
previous_dts
;
if
(
p_sys
->
output
)
{
/* Write data in a form that it's easy to plot for example with gnuplot*/
fprintf
(
p_sys
->
output
,
"%s
\t
%d
\t
%s
\t
%"
PRIu64
"
\t
%"
PRId64
"
\t
%"
PRId64
"
\t
%16s
\n
"
,
p_sys
->
prefix
,
id
->
id
,
id
->
type
,
++
id
->
segment_number
,
p_block
->
i_dts
-
id
->
previous_dts
,
p_sys
->
prefix
,
id
->
id
,
id
->
type
,
++
id
->
segment_number
,
dts_difference
,
p_block
->
i_length
,
outputhash
);
}
else
{
msg_Dbg
(
p_stream
,
"%s: track:%d type:%s segment_number:%"
PRIu64
" dts_difference:%"
PRId64
" length:%"
PRId64
" md5:%16s"
,
p_sys
->
prefix
,
id
->
id
,
id
->
type
,
++
id
->
segment_number
,
p_block
->
i_dts
-
id
->
previous_dts
,
p_sys
->
prefix
,
id
->
id
,
id
->
type
,
++
id
->
segment_number
,
dts_difference
,
p_block
->
i_length
,
outputhash
);
}
free
(
outputhash
);
...
...
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