Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/950>
/* 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;