summaryrefslogtreecommitdiff
path: root/ext/dash/gstdashdemux.c
diff options
context:
space:
mode:
authorDavid Waring <david.waring@rd.bbc.co.uk>2014-12-02 10:06:00 +0000
committerThiago Santos <thiagoss@osg.samsung.com>2014-12-02 13:24:52 -0300
commit306ca0cdf601fcce8a3d5908d9fcc515f6561b99 (patch)
tree67d6e84a68fac73a971207fb4e7a0fe3177835cd /ext/dash/gstdashdemux.c
parent56ae254dd31f6c1ca468aa43bb3262d2fc84422e (diff)
downloadgstreamer-plugins-bad-306ca0cdf601fcce8a3d5908d9fcc515f6561b99.tar.gz
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
Diffstat (limited to 'ext/dash/gstdashdemux.c')
-rw-r--r--ext/dash/gstdashdemux.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/dash/gstdashdemux.c b/ext/dash/gstdashdemux.c
index 5e09e00a5..4ec68236d 100644
--- a/ext/dash/gstdashdemux.c
+++ b/ext/dash/gstdashdemux.c
@@ -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);