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
1592ccf6
Commit
1592ccf6
authored
Apr 08, 2005
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* include/vlc_block.h : Added calculation of i_length in block_ChainGather.
parent
2773adb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
include/vlc_block.h
include/vlc_block.h
+5
-0
No files found.
include/vlc_block.h
View file @
1592ccf6
...
...
@@ -220,13 +220,17 @@ static int block_ChainExtract( block_t *p_list, void *p_data, int i_max )
static
inline
block_t
*
block_ChainGather
(
block_t
*
p_list
)
{
int
i_total
=
0
;
mtime_t
i_length
=
0
;
block_t
*
b
,
*
g
;
if
(
p_list
->
p_next
==
NULL
)
return
p_list
;
/* Already gathered */
for
(
b
=
p_list
;
b
!=
NULL
;
b
=
b
->
p_next
)
{
i_total
+=
b
->
i_buffer
;
i_length
+=
b
->
i_length
;
}
g
=
block_New
(
p_list
->
p_manager
,
i_total
);
block_ChainExtract
(
p_list
,
g
->
p_buffer
,
g
->
i_buffer
);
...
...
@@ -234,6 +238,7 @@ static inline block_t *block_ChainGather( block_t *p_list )
g
->
i_flags
=
p_list
->
i_flags
;
g
->
i_pts
=
p_list
->
i_pts
;
g
->
i_dts
=
p_list
->
i_dts
;
g
->
i_length
=
i_length
;
/* free p_list */
block_ChainRelease
(
p_list
);
...
...
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