From 5c8f7021166ba582eaf0cbca50e49d9e814b14a6 Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Fri, 11 Sep 2015 10:57:26 +0100 Subject: [PATCH] mpdparser: do not dereference profiles is absent These are used to apply restrictions on what the MPD file may use, so no profile means no restrictions. Besides, nothing actually uses the profiles (yet) anyway. https://bugzilla.gnome.org/show_bug.cgi?id=750869 --- ext/dash/gstmpdparser.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ext/dash/gstmpdparser.c b/ext/dash/gstmpdparser.c index 8fde63e255..5fbcd1ca3d 100644 --- a/ext/dash/gstmpdparser.c +++ b/ext/dash/gstmpdparser.c @@ -3406,7 +3406,11 @@ gst_mpd_client_set_uri_downloader (GstMpdClient * client, static void gst_mpd_client_check_profiles (GstMpdClient * client) { - GST_DEBUG ("Profiles: %s", client->mpd_node->profiles); + GST_DEBUG ("Profiles: %s", + client->mpd_node->profiles ? client->mpd_node->profiles : ""); + + if (!client->mpd_node->profiles) + return; if (g_strstr_len (client->mpd_node->profiles, -1, "urn:mpeg:dash:profile:isoff-on-demand:2011")) {