tracer: latency: Show element id, element name and pad name
[platform/upstream/gstreamer.git] / gst / gstprotection.c
index 436cce7..af0434a 100644 (file)
@@ -166,9 +166,10 @@ gst_buffer_add_protection_meta (GstBuffer * buffer, GstStructure * info)
  * an element that supports one of the supplied UUIDs. If more than one
  * element matches, the system ID of the highest ranked element is selected.
  *
- * Returns: (transfer none): One of the strings from @system_identifiers that
- * indicates the highest ranked element that implements the protection system
- * indicated by that system ID, or %NULL if no element has been found.
+ * Returns: (transfer none) (nullable): One of the strings from
+ * @system_identifiers that indicates the highest ranked element that
+ * implements the protection system indicated by that system ID, or %NULL if no
+ * element has been found.
  *
  * Since: 1.6
  */
@@ -195,16 +196,17 @@ gst_protection_select_system (const gchar ** system_identifiers)
 
 /**
  * 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): A null terminated array containing all the
- * @system_identifiers supported by the set of available decryptors, or %NULL
- * if no matches were found.
+ * 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.
  *
  * Since: 1.14
  */
@@ -213,7 +215,7 @@ gst_protection_filter_systems_by_available_decryptors (const gchar **
     system_identifiers)
 {
   GList *decryptors, *walk;
-  gchar **retval;
+  gchar **retval = NULL;
   guint i = 0, decryptors_number;
 
   decryptors =
@@ -225,7 +227,7 @@ gst_protection_filter_systems_by_available_decryptors (const gchar **
   GST_TRACE ("found %u decrytors", decryptors_number);
 
   if (decryptors_number == 0)
-    return NULL;
+    goto beach;
 
   retval = g_new (gchar *, decryptors_number + 1);
 
@@ -248,6 +250,7 @@ gst_protection_filter_systems_by_available_decryptors (const gchar **
     retval = NULL;
   }
 
+beach:
   gst_plugin_feature_list_free (decryptors);
 
   return retval;