miniobject: free qdata array when the last qdata is removed
[platform/upstream/gstreamer.git] / gst / gsttracerutils.h
index d16ab63..a2a5ed6 100644 (file)
@@ -358,7 +358,7 @@ typedef void (*GstTracerHookElementQueryPost) (GObject *self, GstClockTime ts,
  * @ts: the current timestamp
  * @element: the element
  *
- * Hook for gst_element_new() named "element-new".
+ * Hook for whenever a new element is created, named "element-new".
  */
 typedef void (*GstTracerHookElementNew) (GObject *self, GstClockTime ts,
     GstElement *element);
@@ -600,7 +600,7 @@ typedef void (*GstTracerHookMiniObjectDestroyed) (GObject *self, GstClockTime ts
  * @self: the tracer instance
  * @ts: the current timestamp
  * @object: the object being unreffed
- * @refcount: the new refcount after unrefing @object
+ * @new_refcount: the new refcount after unrefing @object
  *
  * Hook called when a #GstObject is being unreffed named
  * "object-unreffed"
@@ -617,7 +617,7 @@ typedef void (*GstTracerHookObjectUnreffed) (GObject *self, GstClockTime ts,
  * @self: the tracer instance
  * @ts: the current timestamp
  * @object: the object being reffed
- * @refcount: the new refcount after refing @object
+ * @new_refcount: the new refcount after refing @object
  *
  * Hook called when a #GstObject is being reffed named
  * "object-reffed".
@@ -634,7 +634,7 @@ typedef void (*GstTracerHookObjectReffed) (GObject *self, GstClockTime ts,
  * @self: the tracer instance
  * @ts: the current timestamp
  * @object: the mini object being unreffed
- * @refcount: the new refcount after unrefing @object
+ * @new_refcount: the new refcount after unrefing @object
  *
  * Hook called when a #GstMiniObject is being unreffed named
  * "mini-object-unreffed".
@@ -651,7 +651,7 @@ typedef void (*GstTracerHookMiniObjectUnreffed) (GObject *self, GstClockTime ts,
  * @self: the tracer instance
  * @ts: the current timestamp
  * @object: the mini object being reffed
- * @refcount: the new refcount after refing @object
+ * @new_refcount: the new refcount after refing @object
  *
  * Hook called when a #GstMiniObject is being reffed named
  * "mini-object-reffed".
@@ -697,6 +697,17 @@ typedef void (*GstTracerHookObjectDestroyed) (GObject *self, GstClockTime ts,
 
 #else /* !GST_DISABLE_GST_TRACER_HOOKS */
 
+static inline void
+_priv_gst_tracing_init (void)
+{
+  GST_DEBUG ("Tracing hooks are disabled");
+}
+
+static inline void
+_priv_gst_tracing_deinit (void)
+{
+}
+
 #define GST_TRACER_PAD_PUSH_PRE(pad, buffer)
 #define GST_TRACER_PAD_PUSH_POST(pad, res)
 #define GST_TRACER_PAD_PUSH_LIST_PRE(pad, list)