Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
864829ad
Commit
864829ad
authored
Sep 13, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* include/vlc_block.h: block_Duplicate() needs to duplicate all the fields of block_t.
parent
7dd83af8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
include/vlc_block.h
include/vlc_block.h
+7
-0
src/misc/block.c
src/misc/block.c
+6
-5
No files found.
include/vlc_block.h
View file @
864829ad
...
...
@@ -119,6 +119,13 @@ static inline block_t *block_Duplicate( block_t *p_block )
{
block_t
*
p_dup
=
block_New
(
p_block
->
p_manager
,
p_block
->
i_buffer
);
p_dup
->
i_dts
=
p_block
->
i_dts
;
p_dup
->
i_pts
=
p_block
->
i_pts
;
p_dup
->
i_flags
=
p_block
->
i_flags
;
p_dup
->
i_length
=
p_block
->
i_length
;
p_dup
->
i_rate
=
p_block
->
i_rate
;
p_dup
->
i_samples
=
p_block
->
i_samples
;
if
(
p_dup
&&
p_block
->
i_buffer
>
0
)
memcpy
(
p_dup
->
p_buffer
,
p_block
->
p_buffer
,
p_block
->
i_buffer
);
...
...
src/misc/block.c
View file @
864829ad
...
...
@@ -119,11 +119,12 @@ block_t *block_Realloc( block_t *p_block, int i_prebody, int i_body )
{
block_t
*
p_rea
=
block_New
(
p_block
->
p_manager
,
i_buffer_size
);
p_rea
->
i_dts
=
p_block
->
i_dts
;
p_rea
->
i_pts
=
p_block
->
i_pts
;
p_rea
->
i_flags
=
p_block
->
i_flags
;
p_rea
->
i_length
=
p_block
->
i_length
;
p_rea
->
i_rate
=
p_block
->
i_rate
;
p_rea
->
i_dts
=
p_block
->
i_dts
;
p_rea
->
i_pts
=
p_block
->
i_pts
;
p_rea
->
i_flags
=
p_block
->
i_flags
;
p_rea
->
i_length
=
p_block
->
i_length
;
p_rea
->
i_rate
=
p_block
->
i_rate
;
p_rea
->
i_samples
=
p_block
->
i_samples
;
memcpy
(
p_rea
->
p_buffer
+
i_prebody
,
p_block
->
p_buffer
,
__MIN
(
p_block
->
i_buffer
,
p_rea
->
i_buffer
-
i_prebody
)
);
...
...
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