Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
GStreamer
gst-editing-services
Commits
c1206df0
Commit
c1206df0
authored
Jun 16, 2019
by
Thibault Saunier
🌵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nlecomposition: Properly set seqnum on flush events
parent
eb53e62c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
plugins/nle/nlecomposition.c
plugins/nle/nlecomposition.c
+12
-3
No files found.
plugins/nle/nlecomposition.c
View file @
c1206df0
...
...
@@ -1308,16 +1308,25 @@ ghost_event_probe_handler (GstPad * ghostpad G_GNUC_UNUSED,
event
=
gst_event_new_flush_stop
(
TRUE
);
GST_PAD_PROBE_INFO_DATA
(
info
)
=
event
;
gst_event_set_seqnum
(
event
,
comp
->
priv
->
flush_seqnum
);
if
(
comp
->
priv
->
seek_seqnum
)
{
GST_EVENT_SEQNUM
(
event
)
=
comp
->
priv
->
seek_seqnum
;
GST_INFO_OBJECT
(
comp
,
"Setting FLUSH_START seqnum: %d"
,
comp
->
priv
->
seek_seqnum
);
}
comp
->
priv
->
flush_seqnum
=
0
;
}
break
;
case
GST_EVENT_FLUSH_START
:
if
(
gst_event_get_seqnum
(
event
)
!=
comp
->
priv
->
flush_seqnum
)
{
GST_INFO_OBJECT
(
comp
,
"Dropping flush start"
);
GST_INFO_OBJECT
(
comp
,
"Dropping flush start %d != %d"
,
gst_event_get_seqnum
(
event
),
comp
->
priv
->
flush_seqnum
);
retval
=
GST_PAD_PROBE_DROP
;
}
else
{
GST_INFO_OBJECT
(
comp
,
"Forwarding our flush start with seqnum %i"
,
comp
->
priv
->
flush_seqnum
);
if
(
comp
->
priv
->
seek_seqnum
)
{
GST_EVENT_SEQNUM
(
event
)
=
comp
->
priv
->
seek_seqnum
;
GST_INFO_OBJECT
(
comp
,
"Setting FLUSH_START seqnum: %d"
,
comp
->
priv
->
seek_seqnum
);
}
}
break
;
case
GST_EVENT_STREAM_START
:
...
...
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