diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-09-20 09:37:07 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-09-20 09:37:07 +0300 |
commit | cd236bc22d44cca01eef99a4ea36c0dcc13abb12 (patch) | |
tree | eb28660a749a3e9d09d704882d1a1bfca514a80f /source/blender | |
parent | 01cb4f98625a9398f3d52bf31349de513524497f (diff) |
Fix T69355: Closing window stops video but not audio
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/screen/screen_edit.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/screen/screen_edit.c b/source/blender/editors/screen/screen_edit.c index 6b3fbb79cb4..815940864ac 100644 --- a/source/blender/editors/screen/screen_edit.c +++ b/source/blender/editors/screen/screen_edit.c @@ -44,6 +44,7 @@ #include "BKE_node.h" #include "BKE_screen.h" #include "BKE_scene.h" +#include "BKE_sound.h" #include "BKE_workspace.h" #include "WM_api.h" @@ -583,6 +584,11 @@ void ED_screen_exit(bContext *C, wmWindow *window, bScreen *screen) if (screen->animtimer) { WM_event_remove_timer(wm, window, screen->animtimer); + + Depsgraph *depsgraph = CTX_data_depsgraph_pointer(C); + Scene *scene = WM_window_get_active_scene(prevwin); + Scene *scene_eval = (Scene *)DEG_get_evaluated_id(depsgraph, &scene->id); + BKE_sound_stop_scene(scene_eval); } screen->animtimer = NULL; screen->scrubbing = false; |