mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix #160299: crash when unlinking a sound file in the VSE
Regression from b2535d04f8 which missed
the possibility that the sound could be null, so simply add a null
pointer check to prevent the crash.
Pull Request: https://projects.blender.org/blender/blender/pulls/160305
This commit is contained in:
parent
11e0336ed2
commit
a751fdb073
1 changed files with 1 additions and 1 deletions
|
|
@ -110,7 +110,7 @@ bool media_presence_is_missing(Scene *scene, const Strip *strip)
|
|||
* block. Since it can be used by multiple strips. */
|
||||
if (strip->type == STRIP_TYPE_SOUND) {
|
||||
const bSound *sound = strip->sound;
|
||||
if (sound->packedfile != nullptr) {
|
||||
if (sound && sound->packedfile != nullptr) {
|
||||
/* The sound file has been packed, don't look up the path. */
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue