Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
gstreamer
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
369
Issues
369
List
Boards
Labels
Milestones
Merge Requests
44
Merge Requests
44
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GStreamer
gstreamer
Commits
0396bc2e
Commit
0396bc2e
authored
Mar 21, 2019
by
Matthew Waters
🐨
Committed by
Tim-Philipp Müller
May 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aggregator: take the pad lock around queue gap event removal
As is done for every other queue interaction
parent
abc875b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
libs/gst/base/gstaggregator.c
libs/gst/base/gstaggregator.c
+2
-0
No files found.
libs/gst/base/gstaggregator.c
View file @
0396bc2e
...
@@ -1477,8 +1477,10 @@ gst_aggregator_default_sink_event (GstAggregator * self,
...
@@ -1477,8 +1477,10 @@ gst_aggregator_default_sink_event (GstAggregator * self,
GST_BUFFER_FLAG_SET
(
gapbuf
,
GST_BUFFER_FLAG_DROPPABLE
);
GST_BUFFER_FLAG_SET
(
gapbuf
,
GST_BUFFER_FLAG_DROPPABLE
);
/* Remove GAP event so we can replace it with the buffer */
/* Remove GAP event so we can replace it with the buffer */
PAD_LOCK
(
aggpad
);
if
(
g_queue_peek_tail
(
&
aggpad
->
priv
->
data
)
==
event
)
if
(
g_queue_peek_tail
(
&
aggpad
->
priv
->
data
)
==
event
)
gst_event_unref
(
g_queue_pop_tail
(
&
aggpad
->
priv
->
data
));
gst_event_unref
(
g_queue_pop_tail
(
&
aggpad
->
priv
->
data
));
PAD_UNLOCK
(
aggpad
);
if
(
gst_aggregator_pad_chain_internal
(
self
,
aggpad
,
gapbuf
,
FALSE
)
!=
if
(
gst_aggregator_pad_chain_internal
(
self
,
aggpad
,
gapbuf
,
FALSE
)
!=
GST_FLOW_OK
)
{
GST_FLOW_OK
)
{
...
...
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