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
@ -538,7 +538,18 @@ gst_dash_demux_src_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
|||||||
}
|
}
|
||||||
if (list == NULL) {
|
if (list == NULL) {
|
||||||
GST_WARNING_OBJECT (demux, "Could not find seeked Period");
|
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)) {
|
if (current_period != gst_mpd_client_get_period_index (demux->client)) {
|
||||||
GSList *streams = NULL;
|
GSList *streams = NULL;
|
||||||
@ -583,6 +594,7 @@ gst_dash_demux_src_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Restart the demux */
|
/* Restart the demux */
|
||||||
|
restart:
|
||||||
GST_DASH_DEMUX_CLIENT_LOCK (demux);
|
GST_DASH_DEMUX_CLIENT_LOCK (demux);
|
||||||
demux->cancelled = FALSE;
|
demux->cancelled = FALSE;
|
||||||
demux->end_of_manifest = FALSE;
|
demux->end_of_manifest = FALSE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user