Files
test/source/blender/blenkernel
Richard Antalik 61033de969 Fix #146493: Crash after starting playback
Root cause is, that reverse playback would not call
`BKE_sound_play_scene()`, however `BKE_sound_stop_scene()` was called
always.

There was some weird logic in `ED_screen_animation_play()` where
condition for what sound scene was to be stopped exactly was inverted
for sequencer and duplicated for non-sequencer scene. This may also
be incorrect if somebody manages to start playback in active scene, then
create sequencer scene and stop it there.

Fortunately `ScreenAnimData` keeps pointer to scene which started
playback, so this is used to also stop the playback.

To make this code bit more readable, the function was split into
functions starting and stopping the playback, so the logic can also be
simplified a bit.

Finally, `sound_device_use_end_after()` was modified to do sanity check.
If the number of users is already 0, it does nothing and returns.
There assertion to catch this in debug builds.

Pull Request: https://projects.blender.org/blender/blender/pulls/147613
2025-10-10 10:22:55 +02:00
..
2025-04-04 18:38:53 +02:00
2025-08-22 17:59:27 +02:00
2025-10-02 12:55:42 -04:00
2025-10-02 12:55:42 -04:00
2025-05-22 16:32:44 +02:00
2025-10-02 12:55:42 -04:00
2025-10-03 09:42:48 +02:00
2025-10-07 10:19:46 +11:00