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
38f24cc8
Commit
38f24cc8
authored
Jul 11, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stream: re-use existing input pointer for statistics
parent
54526620
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
src/input/stream.c
src/input/stream.c
+2
-10
No files found.
src/input/stream.c
View file @
38f24cc8
...
...
@@ -1680,14 +1680,10 @@ static int AReadStream( stream_t *s, void *p_read, unsigned int i_read )
{
stream_sys_t
*
p_sys
=
s
->
p_sys
;
access_t
*
p_access
=
p_sys
->
p_access
;
input_thread_t
*
p_input
=
NULL
;
input_thread_t
*
p_input
=
s
->
p_input
;
int
i_read_orig
=
i_read
;
int
i_total
=
0
;
if
(
s
->
p_parent
&&
s
->
p_parent
->
p_parent
&&
vlc_internals
(
s
->
p_parent
->
p_parent
)
->
i_object_type
==
VLC_OBJECT_INPUT
)
p_input
=
(
input_thread_t
*
)
s
->
p_parent
->
p_parent
;
if
(
!
p_sys
->
i_list
)
{
i_read
=
p_access
->
pf_read
(
p_access
,
p_read
,
i_read
);
...
...
@@ -1749,15 +1745,11 @@ static block_t *AReadBlock( stream_t *s, bool *pb_eof )
{
stream_sys_t
*
p_sys
=
s
->
p_sys
;
access_t
*
p_access
=
p_sys
->
p_access
;
input_thread_t
*
p_input
=
NULL
;
input_thread_t
*
p_input
=
s
->
p_input
;
block_t
*
p_block
;
bool
b_eof
;
int
i_total
=
0
;
if
(
s
->
p_parent
&&
s
->
p_parent
->
p_parent
&&
vlc_internals
(
s
->
p_parent
->
p_parent
)
->
i_object_type
==
VLC_OBJECT_INPUT
)
p_input
=
(
input_thread_t
*
)
s
->
p_parent
->
p_parent
;
if
(
!
p_sys
->
i_list
)
{
p_block
=
p_access
->
pf_block
(
p_access
);
...
...
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