Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
93392b97
Commit
93392b97
authored
Jan 19, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backport [18616]
parent
158d2d92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
include/vlc_block.h
include/vlc_block.h
+3
-3
No files found.
include/vlc_block.h
View file @
93392b97
...
@@ -129,6 +129,8 @@ VLC_EXPORT( block_t *, block_Realloc, ( block_t *, int i_pre, int i_body )
...
@@ -129,6 +129,8 @@ VLC_EXPORT( block_t *, block_Realloc, ( block_t *, int i_pre, int i_body )
static
inline
block_t
*
block_Duplicate
(
block_t
*
p_block
)
static
inline
block_t
*
block_Duplicate
(
block_t
*
p_block
)
{
{
block_t
*
p_dup
=
block_New
(
p_block
->
p_manager
,
p_block
->
i_buffer
);
block_t
*
p_dup
=
block_New
(
p_block
->
p_manager
,
p_block
->
i_buffer
);
if
(
p_dup
==
NULL
)
return
NULL
;
p_dup
->
i_dts
=
p_block
->
i_dts
;
p_dup
->
i_dts
=
p_block
->
i_dts
;
p_dup
->
i_pts
=
p_block
->
i_pts
;
p_dup
->
i_pts
=
p_block
->
i_pts
;
...
@@ -136,9 +138,7 @@ static inline block_t *block_Duplicate( block_t *p_block )
...
@@ -136,9 +138,7 @@ static inline block_t *block_Duplicate( block_t *p_block )
p_dup
->
i_length
=
p_block
->
i_length
;
p_dup
->
i_length
=
p_block
->
i_length
;
p_dup
->
i_rate
=
p_block
->
i_rate
;
p_dup
->
i_rate
=
p_block
->
i_rate
;
p_dup
->
i_samples
=
p_block
->
i_samples
;
p_dup
->
i_samples
=
p_block
->
i_samples
;
memcpy
(
p_dup
->
p_buffer
,
p_block
->
p_buffer
,
p_block
->
i_buffer
);
if
(
p_dup
&&
p_block
->
i_buffer
>
0
)
memcpy
(
p_dup
->
p_buffer
,
p_block
->
p_buffer
,
p_block
->
i_buffer
);
return
p_dup
;
return
p_dup
;
}
}
...
...
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