From 37011e519830e0786fa6e307ed26003a2a8774f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 5 Jun 2015 13:21:55 +0200 Subject: [PATCH] mpdparser: Don't consider streams with a known media presentation duration as live --- ext/dash/gstmpdparser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/dash/gstmpdparser.c b/ext/dash/gstmpdparser.c index dcd24da3f5..b1911c8aa3 100644 --- a/ext/dash/gstmpdparser.c +++ b/ext/dash/gstmpdparser.c @@ -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; } guint