diff options
author | Derek Lesho <dlesho@codeweavers.com> | 2020-04-17 11:34:16 -0500 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2020-07-26 00:58:27 +0100 |
commit | c9e7490f467f360a496be0fe320a810e585d1cb2 (patch) | |
tree | 5949ddae0d2ddc43f49b24d0cbf79cc3bc682253 | |
parent | d454f95a094383260d4231a87b9131e146e60743 (diff) |
asfdemux: Only forward SEEK event when in push mode.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-ugly/-/merge_requests/48>
-rw-r--r-- | gst/asfdemux/gstasfdemux.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gst/asfdemux/gstasfdemux.c b/gst/asfdemux/gstasfdemux.c index f253b87d..9fd360d0 100644 --- a/gst/asfdemux/gstasfdemux.c +++ b/gst/asfdemux/gstasfdemux.c @@ -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"); |