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
a3a165ed
Commit
a3a165ed
authored
Mar 11, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* block: a little pre header + padding.
parent
085985d5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
src/misc/block.c
src/misc/block.c
+8
-9
No files found.
src/misc/block.c
View file @
a3a165ed
...
...
@@ -2,7 +2,7 @@
* block.c: Data blocks management functions
*****************************************************************************
* Copyright (C) 2003-2004 VideoLAN
* $Id
: block.c,v 1.7 2004/02/25 17:48:52 fenrir Exp
$
* $Id$
*
* Authors: Laurent Aimar <fenrir@videolan.org>
*
...
...
@@ -215,12 +215,6 @@ block_t *__block_New( vlc_object_t *p_obj, int i_size )
p_block
=
block_NewEmpty
();
p_block
->
i_buffer
=
i_size
;
if
(
i_size
>
0
)
{
p_block
->
p_buffer
=
malloc
(
i_size
);
}
p_block
->
pf_release
=
BlockRelease
;
p_block
->
pf_duplicate
=
BlockDuplicate
;
p_block
->
pf_modify
=
BlockModify
;
...
...
@@ -231,8 +225,13 @@ block_t *__block_New( vlc_object_t *p_obj, int i_size )
p_block
->
p_sys
=
p_sys
=
malloc
(
sizeof
(
block_sys_t
)
);
vlc_mutex_init
(
p_obj
,
&
p_sys
->
lock
);
p_sys
->
p_allocated_buffer
=
p_block
->
p_buffer
;
p_sys
->
i_allocated_buffer
=
p_block
->
i_buffer
;
/* XXX align on 16 and add 32 prebuffer/posbuffer bytes */
p_sys
->
i_allocated_buffer
=
i_size
+
32
+
32
+
16
;
p_sys
->
p_allocated_buffer
=
malloc
(
p_sys
->
i_allocated_buffer
);
p_block
->
i_buffer
=
i_size
;
p_block
->
p_buffer
=
&
p_sys
->
p_allocated_buffer
[
32
+
15
-
((
long
)
p_sys
->
p_allocated_buffer
%
16
)];
p_sys
->
i_duplicated
=
0
;
p_sys
->
b_modify
=
VLC_TRUE
;
...
...
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