/**
* gst_protection_filter_systems_by_available_decryptors:
- * @system_identifiers: (transfer none): A null terminated array of strings
- * that contains the UUID values of each protection system that is to be
- * checked.
+ * @system_identifiers: (transfer none) (array zero-terminated=1):
+ * A null terminated array of strings that contains the UUID values of each
+ * protection system that is to be checked.
*
* Iterates the supplied list of UUIDs and checks the GstRegistry for
* all the decryptors supporting one of the supplied UUIDs.
*
- * Returns: (transfer full) (nullable): A null terminated array containing all
+ * Returns: (transfer full) (array zero-terminated=1) (nullable):
+ * A null terminated array containing all
* the @system_identifiers supported by the set of available decryptors, or
* %NULL if no matches were found.
*
system_identifiers)
{
GList *decryptors, *walk;
- gchar **retval;
+ gchar **retval = NULL;
guint i = 0, decryptors_number;
decryptors =
GST_TRACE ("found %u decrytors", decryptors_number);
if (decryptors_number == 0)
- return NULL;
+ goto beach;
retval = g_new (gchar *, decryptors_number + 1);
retval = NULL;
}
+beach:
gst_plugin_feature_list_free (decryptors);
return retval;