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
8e6b5f79
Commit
8e6b5f79
authored
Dec 05, 2011
by
Matej
Committed by
Wim Taymans
Dec 06, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add GST_PAD_PROBE_TYPE_HANDLE_FLUSH
parent
36631675
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
gst/gstpad.c
gst/gstpad.c
+9
-13
gst/gstpad.h
gst/gstpad.h
+4
-0
No files found.
gst/gstpad.c
View file @
8e6b5f79
...
...
@@ -2818,6 +2818,10 @@ probe_hook_marshal (GHook * hook, ProbeMarshall * data)
if
((
type
&
GST_PAD_PROBE_TYPE_BLOCKING
)
&&
(
flags
&
GST_PAD_PROBE_TYPE_BLOCKING
&
type
)
==
0
)
goto
no_match
;
/* only probes that have GST_PAD_PROBE_TYPE_HANDLE_FLUSH set */
if
((
type
&
GST_PAD_PROBE_TYPE_HANDLE_FLUSH
)
&&
(
flags
&
GST_PAD_PROBE_TYPE_HANDLE_FLUSH
&
type
)
==
0
)
goto
no_match
;
GST_CAT_LOG_OBJECT
(
GST_CAT_SCHEDULING
,
pad
,
"hook %lu with flags 0x%08x matches"
,
hook
->
hook_id
,
flags
);
...
...
@@ -3990,15 +3994,9 @@ gst_pad_push_event_unchecked (GstPad * pad, GstEvent * event,
case
GST_EVENT_FLUSH_START
:
GST_PAD_SET_FLUSHING
(
pad
);
if
(
G_UNLIKELY
(
GST_PAD_IS_BLOCKED
(
pad
)))
{
/* flush start will have set the FLUSHING flag and will then
* unlock all threads doing a GCond wait on the blocking pad. This
* will typically unblock the STREAMING thread blocked on a pad. */
GST_LOG_OBJECT
(
pad
,
"Pad is blocked, not forwarding flush-start, "
"doing block signal."
);
GST_PAD_BLOCK_BROADCAST
(
pad
);
goto
flushed
;
}
GST_PAD_BLOCK_BROADCAST
(
pad
);
type
|=
GST_PAD_PROBE_TYPE_HANDLE_FLUSH
;
break
;
case
GST_EVENT_FLUSH_STOP
:
GST_PAD_UNSET_FLUSHING
(
pad
);
...
...
@@ -4007,10 +4005,8 @@ gst_pad_push_event_unchecked (GstPad * pad, GstEvent * event,
GST_LOG_OBJECT
(
pad
,
"Removing pending EOS events"
);
remove_event_by_type
(
pad
,
GST_EVENT_EOS
);
if
(
G_UNLIKELY
(
GST_PAD_IS_BLOCKED
(
pad
)))
{
GST_LOG_OBJECT
(
pad
,
"Pad is blocked, not forwarding flush-stop"
);
goto
flushed
;
}
type
|=
GST_PAD_PROBE_TYPE_HANDLE_FLUSH
;
break
;
default:
{
...
...
gst/gstpad.h
View file @
8e6b5f79
...
...
@@ -469,6 +469,10 @@ typedef enum
/* flags to select scheduling mode */
GST_PAD_PROBE_TYPE_PUSH
=
(
1
<<
12
),
GST_PAD_PROBE_TYPE_PULL
=
(
1
<<
13
),
/* flag for event probes that want to handle flush events.
The probe can drop flush event which will mean that the rest
of the pipeline will not get flushed */
GST_PAD_PROBE_TYPE_HANDLE_FLUSH
=
(
1
<<
14
)
}
GstPadProbeType
;
#define GST_PAD_PROBE_TYPE_BLOCKING (GST_PAD_PROBE_TYPE_IDLE | GST_PAD_PROBE_TYPE_BLOCK)
...
...
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