Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
gstreamer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
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
luzpaz
gstreamer
Commits
b4a9a2f7
Commit
b4a9a2f7
authored
Jun 14, 2012
by
Tim-Philipp Müller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bufferlist: no need to store the size of the structure inside the structure
parent
463268b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
gst/gstbufferlist.c
gst/gstbufferlist.c
+3
-7
No files found.
gst/gstbufferlist.c
View file @
b4a9a2f7
...
...
@@ -54,8 +54,6 @@ struct _GstBufferList
{
GstMiniObject
mini_object
;
gsize
slice_size
;
GArray
*
array
;
};
...
...
@@ -99,19 +97,17 @@ _gst_buffer_list_free (GstBufferList * list)
gst_buffer_unref
(
g_array_index
(
list
->
array
,
GstBuffer
*
,
i
));
g_array_free
(
list
->
array
,
TRUE
);
g_slice_free1
(
list
->
slice_size
,
list
);
g_slice_free1
(
sizeof
(
GstBufferList
)
,
list
);
}
static
void
gst_buffer_list_init
(
GstBufferList
*
list
,
g
size
size
,
g
uint
asize
)
gst_buffer_list_init
(
GstBufferList
*
list
,
guint
asize
)
{
gst_mini_object_init
(
GST_MINI_OBJECT_CAST
(
list
),
_gst_buffer_list_type
);
list
->
mini_object
.
copy
=
(
GstMiniObjectCopyFunction
)
_gst_buffer_list_copy
;
list
->
mini_object
.
free
=
(
GstMiniObjectFreeFunction
)
_gst_buffer_list_free
;
list
->
slice_size
=
size
;
list
->
array
=
g_array_sized_new
(
FALSE
,
FALSE
,
sizeof
(
GstBuffer
*
),
asize
);
GST_LOG
(
"init %p"
,
list
);
...
...
@@ -141,7 +137,7 @@ gst_buffer_list_new_sized (guint size)
GST_LOG
(
"new %p"
,
list
);
gst_buffer_list_init
(
list
,
size
of
(
GstBufferList
),
size
);
gst_buffer_list_init
(
list
,
size
);
return
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