Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guy1524
gst-plugins-ugly
Commits
6571ed72
Commit
6571ed72
authored
Apr 17, 2020
by
Derek Lesho
Committed by
GStreamer Marge Bot
Jul 25, 2020
Browse files
asfdemux: Only forward SEEK event when in push mode.
Part-of: <
gstreamer/gst-plugins-ugly!48
>
parent
d454f95a
Pipeline
#182161
failed with stages
in 21 minutes and 57 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
gst/asfdemux/gstasfdemux.c
View file @
6571ed72
...
...
@@ -672,11 +672,6 @@ gst_asf_demux_handle_seek_event (GstASFDemux * demux, GstEvent * event)
return
FALSE
;
}
/* upstream might handle TIME seek, e.g. mms or rtsp, or not, e.g. http,
* so first try to let it handle the seek event. */
if
(
gst_pad_push_event
(
demux
->
sinkpad
,
gst_event_ref
(
event
)))
return
TRUE
;
if
(
G_UNLIKELY
(
demux
->
seekable
==
FALSE
||
demux
->
packet_size
==
0
||
demux
->
num_packets
==
0
||
demux
->
play_time
==
0
))
{
GST_LOG_OBJECT
(
demux
,
"stream is not seekable"
);
...
...
@@ -707,6 +702,11 @@ gst_asf_demux_handle_seek_event (GstASFDemux * demux, GstEvent * event)
next
=
after
&&
!
before
;
if
(
G_UNLIKELY
(
demux
->
streaming
))
{
/* upstream might handle TIME seek, e.g. mms or rtsp, or not, e.g. http,
* so first try to let it handle the seek event. */
if
(
gst_pad_push_event
(
demux
->
sinkpad
,
gst_event_ref
(
event
)))
return
TRUE
;
/* support it safely needs more segment handling, e.g. closing etc */
if
(
!
flush
)
{
GST_LOG_OBJECT
(
demux
,
"streaming; non-flushing seek not supported"
);
...
...
Write
Preview
Supports
Markdown
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