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
This commit is contained in:
Vincent Penquerc'h 2015-09-11 10:57:26 +01:00
parent eab158a669
commit 5c8f702116

View file

@ -3406,7 +3406,11 @@ gst_mpd_client_set_uri_downloader (GstMpdClient * client,
static void static void
gst_mpd_client_check_profiles (GstMpdClient * client) 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 : "<none>");
if (!client->mpd_node->profiles)
return;
if (g_strstr_len (client->mpd_node->profiles, -1, if (g_strstr_len (client->mpd_node->profiles, -1,
"urn:mpeg:dash:profile:isoff-on-demand:2011")) { "urn:mpeg:dash:profile:isoff-on-demand:2011")) {