diff --git a/subprojects/gst-plugins-bad/ext/dash/gstmpdperiodnode.c b/subprojects/gst-plugins-bad/ext/dash/gstmpdperiodnode.c index 8cde447388..ca92eaa274 100644 --- a/subprojects/gst-plugins-bad/ext/dash/gstmpdperiodnode.c +++ b/subprojects/gst-plugins-bad/ext/dash/gstmpdperiodnode.c @@ -117,8 +117,9 @@ gst_mpd_period_get_xml_node (GstMPDNode * node) gst_xml_helper_set_prop_string (period_xml_node, "id", self->id); gst_xml_helper_set_prop_duration (period_xml_node, "start", self->start); - gst_xml_helper_set_prop_duration (period_xml_node, "duration", - self->duration); + if (self->duration != G_MAXUINT64) + gst_xml_helper_set_prop_duration (period_xml_node, "duration", + self->duration); gst_xml_helper_set_prop_boolean (period_xml_node, "bitstreamSwitching", self->bitstreamSwitching); @@ -188,7 +189,7 @@ gst_mpd_period_node_init (GstMPDPeriodNode * self) { self->id = NULL; self->start = 0; /* [ms] */ - self->duration = 0; /* [ms] */ + self->duration = G_MAXUINT64; /* [ms] */ self->bitstreamSwitching = 0; self->SegmentBase = NULL; self->SegmentList = NULL;