libobs: Fix bug (last scene item potentially lost)

This commit is contained in:
Socapex 2015-02-13 11:02:35 -05:00 committed by jp9000
parent 7414507587
commit 753959170b

View file

@ -152,8 +152,10 @@ static inline void attach_sceneitem(struct obs_scene *parent,
prev->next->prev = item;
prev->next = item;
} else {
item->next = item->parent->first_item;
item->parent->first_item = item;
item->next = parent->first_item;
if (parent->first_item)
parent->first_item->prev = item;
parent->first_item = item;
}
}