diff --git a/ext/dash/gstmpdparser.c b/ext/dash/gstmpdparser.c index f3a4b849aa..1e757bd59c 100644 --- a/ext/dash/gstmpdparser.c +++ b/ext/dash/gstmpdparser.c @@ -1743,7 +1743,6 @@ gst_mpdparser_parse_content_protection_node (GList ** list, xmlNode * a_node) for (cur_node = a_node->children; cur_node; cur_node = cur_node->next) { if (cur_node->type == XML_ELEMENT_NODE) { if (xmlStrcmp (cur_node->name, (xmlChar *) "pro") == 0) { - gsize decoded_len; GstDescriptorType *new_descriptor; new_descriptor = g_slice_new0 (GstDescriptorType); *list = g_list_append (*list, new_descriptor); @@ -1753,8 +1752,6 @@ gst_mpdparser_parse_content_protection_node (GList ** list, xmlNode * a_node) gst_mpdparser_get_xml_node_content (cur_node, &new_descriptor->value); - g_base64_decode_inplace (new_descriptor->value, &decoded_len); - *(new_descriptor->value + decoded_len) = '\0'; goto beach; } } diff --git a/tests/check/elements/dash_demux.c b/tests/check/elements/dash_demux.c index ae89ced095..7cb1b93f30 100644 --- a/tests/check/elements/dash_demux.c +++ b/tests/check/elements/dash_demux.c @@ -1382,7 +1382,7 @@ testContentProtectionDashdemuxSendsEvent (GstAdaptiveDemuxTestEngine * engine, fail_if (str == NULL); } else if (g_strcmp0 (system_id, "9a04f079-9840-4286-ab92-e65be0885f95") == 0) { fail_unless (g_strcmp0 (origin, "dash/mpd") == 0); - fail_unless (g_strcmp0 (value, "test") == 0); + fail_unless (g_strcmp0 (value, "dGVzdA==") == 0); } else { fail ("unexpected content protection event '%s'", system_id); }