mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 01:31:03 +00:00
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.
This commit is contained in:
parent
9208245db0
commit
7e75b2b0f0
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
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);
|
||||
|
|
Loading…
Reference in a new issue