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
a754eb45
Commit
a754eb45
authored
Apr 07, 2015
by
Prashant Gotarne
Committed by
Tim-Philipp Müller
Apr 08, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bufferlist: make sure list is writable before adding or removing buffers
https://bugzilla.gnome.org/show_bug.cgi?id=747439
parent
c547e010
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
gst/gstbufferlist.c
gst/gstbufferlist.c
+2
-0
No files found.
gst/gstbufferlist.c
View file @
a754eb45
...
...
@@ -310,6 +310,7 @@ gst_buffer_list_insert (GstBufferList * list, gint idx, GstBuffer * buffer)
g_return_if_fail
(
GST_IS_BUFFER_LIST
(
list
));
g_return_if_fail
(
buffer
!=
NULL
);
g_return_if_fail
(
gst_buffer_list_is_writable
(
list
));
if
(
idx
==
-
1
&&
list
->
n_buffers
<
list
->
n_allocated
)
{
list
->
buffers
[
list
->
n_buffers
++
]
=
buffer
;
...
...
@@ -359,6 +360,7 @@ gst_buffer_list_remove (GstBufferList * list, guint idx, guint length)
g_return_if_fail
(
GST_IS_BUFFER_LIST
(
list
));
g_return_if_fail
(
idx
<
list
->
n_buffers
);
g_return_if_fail
(
idx
+
length
<=
list
->
n_buffers
);
g_return_if_fail
(
gst_buffer_list_is_writable
(
list
));
gst_buffer_list_remove_range_internal
(
list
,
idx
,
length
,
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