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
4033ecea
Commit
4033ecea
authored
Nov 22, 2003
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* block: initialise all fields.
parent
9c78d56c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
src/misc/block.c
src/misc/block.c
+8
-1
No files found.
src/misc/block.c
View file @
4033ecea
...
...
@@ -2,7 +2,7 @@
* block.c: Data blocks management functions
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: block.c,v 1.
4 2003/11/22 04:02:10 tite
r Exp $
* $Id: block.c,v 1.
5 2003/11/22 14:42:47 fenri
r Exp $
*
* Authors: Laurent Aimar <fenrir@videolan.org>
*
...
...
@@ -74,6 +74,7 @@ static block_t *__BlockDupContent( block_t *p_block )
p_dup
->
b_frame_start
=
p_block
->
b_frame_start
;
p_dup
->
i_pts
=
p_block
->
i_pts
;
p_dup
->
i_dts
=
p_block
->
i_dts
;
p_dup
->
b_discontinuity
=
p_block
->
b_discontinuity
;
return
p_dup
;
}
...
...
@@ -188,11 +189,16 @@ block_t *block_NewEmpty( void )
block_t
*
p_block
;
p_block
=
malloc
(
sizeof
(
block_t
)
);
memset
(
p_block
,
0
,
sizeof
(
block_t
)
);
p_block
->
p_next
=
NULL
;
p_block
->
b_frame_display
=
VLC_TRUE
;
p_block
->
b_frame_start
=
VLC_FALSE
;
p_block
->
i_pts
=
0
;
p_block
->
i_dts
=
0
;
p_block
->
i_length
=
0
;
p_block
->
b_discontinuity
=
VLC_FALSE
;
p_block
->
i_buffer
=
0
;
p_block
->
p_buffer
=
NULL
;
...
...
@@ -202,6 +208,7 @@ block_t *block_NewEmpty( void )
p_block
->
pf_modify
=
NULL
;
p_block
->
pf_realloc
=
NULL
;
p_block
->
p_manager
=
NULL
;
p_block
->
p_sys
=
NULL
;
return
p_block
;
}
...
...
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