Commit 37011e51 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

mpdparser: Don't consider streams with a known media presentation duration as live

parent 4dd355ce
......@@ -4241,7 +4241,8 @@ gst_mpd_client_is_live (GstMpdClient * client)
g_return_val_if_fail (client != NULL, FALSE);
g_return_val_if_fail (client->mpd_node != NULL, FALSE);
return client->mpd_node->type == GST_MPD_FILE_TYPE_DYNAMIC;
return client->mpd_node->type == GST_MPD_FILE_TYPE_DYNAMIC &&
client->mpd_node->mediaPresentationDuration != -1;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment