diff options
author | Richard Antalik <richardantalik@gmail.com> | 2022-05-17 22:08:49 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2022-05-17 22:22:21 +0300 |
commit | 35e73aa3472ab8c1e28feec1829fae79967322b5 (patch) | |
tree | 142ccb43c30bffb4118baa474c7abe3efc654928 /source/blender/sequencer/SEQ_utils.h | |
parent | b48adbc9d79c55b8dac368865098b34c7536d74f (diff) |
Fix T98021: Crash when using scene strip as sequencer input
Issue was caused by treating such strip as meta and using
`seq->channels` directly, which is not valid for scene strips.
Pointer to channels is now provided by function
`SEQ_get_seqbase_from_sequence`.
Diffstat (limited to 'source/blender/sequencer/SEQ_utils.h')
-rw-r--r-- | source/blender/sequencer/SEQ_utils.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/sequencer/SEQ_utils.h b/source/blender/sequencer/SEQ_utils.h index ec33bca87a3..ce3c81606ea 100644 --- a/source/blender/sequencer/SEQ_utils.h +++ b/source/blender/sequencer/SEQ_utils.h @@ -32,7 +32,9 @@ void SEQ_sequence_base_unique_name_recursive(struct Scene *scene, struct ListBase *seqbasep, struct Sequence *seq); const char *SEQ_sequence_give_name(struct Sequence *seq); -struct ListBase *SEQ_get_seqbase_from_sequence(struct Sequence *seq, int *r_offset); +struct ListBase *SEQ_get_seqbase_from_sequence(struct Sequence *seq, + struct ListBase **channels, + int *r_offset); const struct Sequence *SEQ_get_topmost_sequence(const struct Scene *scene, int frame); /** * In cases where we don't know the sequence's listbase. |