Commit 7e75b2b0 authored by Ronald S. Bultje's avatar Ronald S. Bultje
Browse files

gst/gstprobe.c: Another workaround for memory access while destroyed in callback.

Original commit message from CVS:
* gst/gstprobe.c: (gst_probe_dispatcher_dispatch):
Another workaround for memory access while destroyed in callback.
Please, someone with refcount knowledge, have a look at this.
parent 9208245d
2005-01-16 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* gst/gstprobe.c: (gst_probe_dispatcher_dispatch):
Another workaround for memory access while destroyed in callback.
Please, someone with refcount knowledge, have a look at this.
2005-01-15 Thomas Vander Stichele <thomas at apestaart dot org>
* docs/faq/faq.xml:
......
......@@ -251,7 +251,8 @@ gst_probe_dispatcher_dispatch (GstProbeDispatcher * disp, GstData ** data)
res &= gst_probe_perform (probe, data);
/* it might have disappeared in the callback */
if (g_slist_find (disp->probes, probe) && probe->single_shot) {
if (disp->active &&
g_slist_find (disp->probes, probe) && probe->single_shot) {
disp->probes = g_slist_remove (disp->probes, probe);
gst_probe_destroy (probe);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment