Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
luzpaz
gstreamer
Commits
b133bea4
Commit
b133bea4
authored
Nov 09, 2011
by
Wim Taymans
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pad: don't store events on flushing pads
check the flushing state of the pad before storing the event.
parent
b7966c0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
gst/gstpad.c
gst/gstpad.c
+3
-3
No files found.
gst/gstpad.c
View file @
b133bea4
...
...
@@ -4450,6 +4450,9 @@ gst_pad_send_event (GstPad * pad, GstEvent * event)
GST_CAT_DEBUG_OBJECT
(
GST_CAT_EVENT
,
pad
,
"have event type %s"
,
GST_EVENT_TYPE_NAME
(
event
));
if
(
G_UNLIKELY
(
GST_PAD_IS_FLUSHING
(
pad
)))
goto
flushing
;
if
(
serialized
)
{
/* lock order: STREAM_LOCK, LOCK, recheck flushing. */
GST_OBJECT_UNLOCK
(
pad
);
...
...
@@ -4499,9 +4502,6 @@ gst_pad_send_event (GstPad * pad, GstEvent * event)
}
}
/* now do the probe */
if
(
G_UNLIKELY
(
GST_PAD_IS_FLUSHING
(
pad
)))
goto
flushing
;
PROBE_PUSH
(
pad
,
type
|
GST_PAD_PROBE_TYPE_PUSH
|
GST_PAD_PROBE_TYPE_BLOCK
,
event
,
probe_stopped
);
...
...
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