mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
gst/gstprobe.c: Check for existence of probe after performing the probe before re-accessing it to prevent segfaults c...
Original commit message from CVS: * gst/gstprobe.c: (gst_probe_dispatcher_dispatch): Check for existence of probe after performing the probe before re-accessing it to prevent segfaults caused by removal of the probe in the callback.
This commit is contained in:
parent
d3178f5a44
commit
374b65ad37
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2005-01-07 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||||
|
|
||||||
|
* gst/gstprobe.c: (gst_probe_dispatcher_dispatch):
|
||||||
|
Check for existence of probe after performing the probe before
|
||||||
|
re-accessing it to prevent segfaults caused by removal of the
|
||||||
|
probe in the callback.
|
||||||
|
|
||||||
2005-01-05 David Schleef <ds@schleef.org>
|
2005-01-05 David Schleef <ds@schleef.org>
|
||||||
|
|
||||||
* testsuite/registry/Makefile.am:
|
* testsuite/registry/Makefile.am:
|
||||||
|
|
|
@ -218,7 +218,8 @@ gst_probe_dispatcher_dispatch (GstProbeDispatcher * disp, GstData ** data)
|
||||||
walk = g_slist_next (walk);
|
walk = g_slist_next (walk);
|
||||||
|
|
||||||
res &= gst_probe_perform (probe, data);
|
res &= gst_probe_perform (probe, data);
|
||||||
if (probe->single_shot) {
|
/* it might have disappeared in the callback */
|
||||||
|
if (g_slist_find (disp->probes, probe) && probe->single_shot) {
|
||||||
disp->probes = g_slist_remove (disp->probes, probe);
|
disp->probes = g_slist_remove (disp->probes, probe);
|
||||||
|
|
||||||
gst_probe_destroy (probe);
|
gst_probe_destroy (probe);
|
||||||
|
|
Loading…
Reference in a new issue