mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 15:18:21 +00:00
Add refcounting around _iterate to guard against unreffing in scheduling callbacks or other nastyties
Original commit message from CVS: Add refcounting around _iterate to guard against unreffing in scheduling callbacks or other nastyties
This commit is contained in:
parent
687448e204
commit
ddd3265b11
1 changed files with 3 additions and 0 deletions
|
@ -979,6 +979,8 @@ gst_bin_iterate (GstBin *bin)
|
|||
|
||||
oclass = GST_BIN_GET_CLASS (bin);
|
||||
|
||||
gst_object_ref (GST_OBJECT (bin));
|
||||
|
||||
if (bin->pre_iterate_func)
|
||||
(bin->pre_iterate_func) (bin, bin->pre_iterate_data);
|
||||
|
||||
|
@ -1000,6 +1002,7 @@ gst_bin_iterate (GstBin *bin)
|
|||
running = TRUE;
|
||||
}
|
||||
}
|
||||
gst_object_unref (GST_OBJECT (bin));
|
||||
|
||||
return running;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue