Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
08b5947d
Commit
08b5947d
authored
Feb 05, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify read timing in stream.c.
parent
8cbb6fc3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
src/input/stream.c
src/input/stream.c
+2
-6
No files found.
src/input/stream.c
View file @
08b5947d
...
@@ -976,7 +976,6 @@ static int AStreamSeekBlock( stream_t *s, int64_t i_pos )
...
@@ -976,7 +976,6 @@ static int AStreamSeekBlock( stream_t *s, int64_t i_pos )
static
int
AStreamRefillBlock
(
stream_t
*
s
)
static
int
AStreamRefillBlock
(
stream_t
*
s
)
{
{
stream_sys_t
*
p_sys
=
s
->
p_sys
;
stream_sys_t
*
p_sys
=
s
->
p_sys
;
int64_t
i_start
,
i_stop
;
block_t
*
b
;
block_t
*
b
;
/* Release data */
/* Release data */
...
@@ -1000,7 +999,7 @@ static int AStreamRefillBlock( stream_t *s )
...
@@ -1000,7 +999,7 @@ static int AStreamRefillBlock( stream_t *s )
}
}
/* Now read a new block */
/* Now read a new block */
i_start
=
mdate
();
const
int64_t
i_start
=
mdate
();
for
(
;;
)
for
(
;;
)
{
{
bool
b_eof
;
bool
b_eof
;
...
@@ -1015,10 +1014,9 @@ static int AStreamRefillBlock( stream_t *s )
...
@@ -1015,10 +1014,9 @@ static int AStreamRefillBlock( stream_t *s )
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
p_sys
->
stat
.
i_read_time
+=
mdate
()
-
i_start
;
while
(
b
)
while
(
b
)
{
{
i_stop
=
mdate
();
/* Append the block */
/* Append the block */
p_sys
->
block
.
i_size
+=
b
->
i_buffer
;
p_sys
->
block
.
i_size
+=
b
->
i_buffer
;
*
p_sys
->
block
.
pp_last
=
b
;
*
p_sys
->
block
.
pp_last
=
b
;
...
@@ -1030,11 +1028,9 @@ static int AStreamRefillBlock( stream_t *s )
...
@@ -1030,11 +1028,9 @@ static int AStreamRefillBlock( stream_t *s )
/* Update stat */
/* Update stat */
p_sys
->
stat
.
i_bytes
+=
b
->
i_buffer
;
p_sys
->
stat
.
i_bytes
+=
b
->
i_buffer
;
p_sys
->
stat
.
i_read_time
+=
i_stop
-
i_start
;
p_sys
->
stat
.
i_read_count
++
;
p_sys
->
stat
.
i_read_count
++
;
b
=
b
->
p_next
;
b
=
b
->
p_next
;
i_start
=
mdate
();
}
}
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
...
...
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