mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 15:27:07 +00:00
dashdemux: send missing FLUSH_STOP/EOS when no seeking period is found
https://bugzilla.gnome.org/show_bug.cgi?id=736800
This commit is contained in:
parent
d518033e77
commit
5ae991095d
1 changed files with 13 additions and 1 deletions
|
@ -538,7 +538,18 @@ gst_dash_demux_src_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
|||
}
|
||||
if (list == NULL) {
|
||||
GST_WARNING_OBJECT (demux, "Could not find seeked Period");
|
||||
return FALSE;
|
||||
|
||||
if (flags & GST_SEEK_FLAG_FLUSH) {
|
||||
GST_DEBUG_OBJECT (demux, "Sending flush stop and eos on all pad");
|
||||
for (iter = demux->streams; iter; iter = g_slist_next (iter)) {
|
||||
GstDashDemuxStream *stream;
|
||||
|
||||
stream = iter->data;
|
||||
stream->stream_eos = TRUE;
|
||||
gst_pad_push_event (stream->pad, gst_event_new_flush_stop (TRUE));
|
||||
}
|
||||
}
|
||||
goto restart;
|
||||
}
|
||||
if (current_period != gst_mpd_client_get_period_index (demux->client)) {
|
||||
GSList *streams = NULL;
|
||||
|
@ -583,6 +594,7 @@ gst_dash_demux_src_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
|||
}
|
||||
|
||||
/* Restart the demux */
|
||||
restart:
|
||||
GST_DASH_DEMUX_CLIENT_LOCK (demux);
|
||||
demux->cancelled = FALSE;
|
||||
demux->end_of_manifest = FALSE;
|
||||
|
|
Loading…
Reference in a new issue