Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-05-03 20:44:49 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-05-03 20:44:49 +0300
commitbed8ad6f95a5dc71a0860535387a027ee62637b3 (patch)
tree70d6b32911901e67f284d6d6ff650ed64a9b7aad /source/blender/blenkernel/intern/sound.c
parent3c07967ef28e5928049647daa0673f9db91d083f (diff)
Fix crash in background rendering after recent sound changes
Diffstat (limited to 'source/blender/blenkernel/intern/sound.c')
-rw-r--r--source/blender/blenkernel/intern/sound.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/sound.c b/source/blender/blenkernel/intern/sound.c
index 04e34331826..978b287ba22 100644
--- a/source/blender/blenkernel/intern/sound.c
+++ b/source/blender/blenkernel/intern/sound.c
@@ -532,12 +532,14 @@ void BKE_sound_reset_scene_specs(Scene *scene)
{
sound_verify_evaluated_id(&scene->id);
- AUD_Specs specs;
+ if (scene->sound_scene) {
+ AUD_Specs specs;
- specs.channels = AUD_Device_getChannels(sound_device);
- specs.rate = AUD_Device_getRate(sound_device);
+ specs.channels = AUD_Device_getChannels(sound_device);
+ specs.rate = AUD_Device_getRate(sound_device);
- AUD_Sequence_setSpecs(scene->sound_scene, specs);
+ AUD_Sequence_setSpecs(scene->sound_scene, specs);
+ }
}
void BKE_sound_mute_scene(Scene *scene, int muted)