First THREADED backport attempt, focusing on adding locks and making sure the API...
[platform/upstream/gstreamer.git] / gst / gstprobe.c
index 1a43c83..eb9fd57 100644 (file)
@@ -49,7 +49,9 @@ gst_probe_get_type (void)
  * @callback: the function to call when the probe is triggered
  * @user_data: data passed to the callback function
  *
- * Create a new probe with the specified parameters
+ * Create a new probe with the specified parameters. The single shot
+ * probe will be fired only once. It is the responsability of the
+ * application to free the single probe after it has been fired.
  *
  * Returns: a new #GstProbe.
  */
@@ -255,7 +257,8 @@ gst_probe_dispatcher_dispatch (GstProbeDispatcher * disp, GstData ** data)
         g_slist_find (disp->probes, probe) && probe->single_shot) {
       disp->probes = g_slist_remove (disp->probes, probe);
 
-      gst_probe_destroy (probe);
+      /* do not free the probe here as it cannot be made threadsafe */
+      //gst_probe_destroy (probe);
     }
   }