diff options
-rw-r--r-- | ext/dash/gstdashdemux.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/dash/gstdashdemux.c b/ext/dash/gstdashdemux.c index 91de3c620..f1b30917e 100644 --- a/ext/dash/gstdashdemux.c +++ b/ext/dash/gstdashdemux.c @@ -1460,9 +1460,12 @@ gst_dash_demux_stream_fragment_finished (GstAdaptiveDemux * demux, GstDashDemuxStream *dashstream = (GstDashDemuxStream *) stream; if (gst_mpd_client_has_isoff_ondemand_profile (dashdemux->client) && - dashstream->sidx_parser.status == GST_ISOFF_SIDX_PARSER_FINISHED) + dashstream->sidx_parser.status == GST_ISOFF_SIDX_PARSER_FINISHED) { /* fragment is advanced on data_received when byte limits are reached */ - return GST_FLOW_OK; + if (gst_dash_demux_stream_has_next_fragment (stream)) + return GST_FLOW_OK; + return GST_FLOW_EOS; + } if (G_UNLIKELY (stream->downloading_header || stream->downloading_index)) return GST_FLOW_OK; |