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:
authorRichard Antalik <richardantalik@gmail.com>2020-10-05 03:17:19 +0300
committerRichard Antalik <richardantalik@gmail.com>2020-10-05 03:17:19 +0300
commitf375ec4986daed7d54ca2bb418b764536f201b94 (patch)
treea82ae9dee5c06972e1f1f0e15b8904135064ccfa
parentf4f6fdc26868d157b57c69e3a0e8f1c50beb7da4 (diff)
Fix T80282: Playback start delayed with AV sync
If current frame is set to before start frame, with AV sync there is delay when playback is started. Tag scene with ID_RECALC_AUDIO_SEEK, so audio playback starts from correct position. Reviewed By: sergey Differential Revision: https://developer.blender.org/D8809
-rw-r--r--source/blender/editors/screen/screen_edit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/screen/screen_edit.c b/source/blender/editors/screen/screen_edit.c
index f7c08cff23f..ee8dacd28fc 100644
--- a/source/blender/editors/screen/screen_edit.c
+++ b/source/blender/editors/screen/screen_edit.c
@@ -1521,6 +1521,9 @@ void ED_screen_animation_timer(bContext *C, int redraws, int sync, int enable)
screen->animtimer->customdata = sad;
}
+ /* Seek audio to ensure playback in preview range with AV sync. */
+ DEG_id_tag_update(&scene->id, ID_RECALC_AUDIO_SEEK);
+
/* notifier catched by top header, for button */
WM_event_add_notifier(C, NC_SCREEN | ND_ANIMPLAY, NULL);
}