mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
dashdemux: Fix period selection for live streams
Fix period selection and properly error out when update cannot be done https://bugzilla.gnome.org/show_bug.cgi?id=725298
This commit is contained in:
parent
56ae254dd3
commit
306ca0cdf6
1 changed files with 2 additions and 1 deletions
|
@ -951,7 +951,7 @@ gst_dash_demux_update_manifest (GstAdaptiveDemux * demux, GstBuffer * buffer)
|
|||
/* TODO */
|
||||
}
|
||||
|
||||
if (period_idx) {
|
||||
if (period_id) {
|
||||
if (!gst_mpd_client_set_period_id (new_client, period_id)) {
|
||||
GST_DEBUG_OBJECT (demux, "Error setting up the updated manifest file");
|
||||
return GST_FLOW_EOS;
|
||||
|
@ -1005,6 +1005,7 @@ gst_dash_demux_update_manifest (GstAdaptiveDemux * demux, GstBuffer * buffer)
|
|||
* the manifest */
|
||||
GST_WARNING_OBJECT (demux, "Error parsing the manifest.");
|
||||
gst_buffer_unmap (buffer, &mapinfo);
|
||||
return GST_FLOW_ERROR;
|
||||
}
|
||||
|
||||
gst_buffer_unmap (buffer, &mapinfo);
|
||||
|
|
Loading…
Reference in a new issue