Skip to content
Snippets Groups Projects
Commit cd800656 authored by Richard Antalik's avatar Richard Antalik Committed by Thomas Dinges
Browse files

Fix T100049: Crash when render finishes

Caused by NULL dereference of `Editing` before NULL check was done.
parent 80d193c5
No related branches found
No related tags found
No related merge requests found
...@@ -384,14 +384,15 @@ void seq_open_anim_file(Scene *scene, Sequence *seq, bool openfile) ...@@ -384,14 +384,15 @@ void seq_open_anim_file(Scene *scene, Sequence *seq, bool openfile)
const Sequence *SEQ_get_topmost_sequence(const Scene *scene, int frame) const Sequence *SEQ_get_topmost_sequence(const Scene *scene, int frame)
{ {
Editing *ed = scene->ed; Editing *ed = scene->ed;
ListBase *channels = SEQ_channels_displayed_get(ed);
const Sequence *seq, *best_seq = NULL;
int best_machine = -1;
if (!ed) { if (!ed) {
return NULL; return NULL;
} }
ListBase *channels = SEQ_channels_displayed_get(ed);
const Sequence *seq, *best_seq = NULL;
int best_machine = -1;
for (seq = ed->seqbasep->first; seq; seq = seq->next) { for (seq = ed->seqbasep->first; seq; seq = seq->next) {
if (SEQ_render_is_muted(channels, seq) || !SEQ_time_strip_intersects_frame(seq, frame)) { if (SEQ_render_is_muted(channels, seq) || !SEQ_time_strip_intersects_frame(seq, frame)) {
continue; continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment