From 7e75b2b0f0fbd1a3c038df824668f0890f2e02bd Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Sun, 16 Jan 2005 14:36:58 +0000 Subject: [PATCH] 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. --- ChangeLog | 6 ++++++ gst/gstprobe.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 06baab2..8df968c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-01-16 Ronald S. Bultje + + * 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 * docs/faq/faq.xml: diff --git a/gst/gstprobe.c b/gst/gstprobe.c index 2e52016..1a43c83 100644 --- a/gst/gstprobe.c +++ b/gst/gstprobe.c @@ -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); -- 2.7.4