mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
compositor: Don't crash in prepare_frame() if the pad was just removed
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/950>
This commit is contained in:
parent
3ab2023ed8
commit
831199a808
1 changed files with 4 additions and 1 deletions
|
@ -433,7 +433,10 @@ gst_compositor_pad_prepare_frame (GstVideoAggregatorPad * pad,
|
|||
/* Check if this frame is obscured by a higher-zorder frame
|
||||
* TODO: Also skip a frame if it's obscured by a combination of
|
||||
* higher-zorder frames */
|
||||
l = g_list_find (GST_ELEMENT (vagg)->sinkpads, pad)->next;
|
||||
l = g_list_find (GST_ELEMENT (vagg)->sinkpads, pad);
|
||||
/* The pad might've just been removed */
|
||||
if (l)
|
||||
l = l->next;
|
||||
for (; l; l = l->next) {
|
||||
if (_pad_obscures_rectangle (vagg, l->data, frame_rect)) {
|
||||
frame_obscured = TRUE;
|
||||
|
|
Loading…
Reference in a new issue