diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-02-07 21:01:03 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2020-02-07 21:01:05 +0100 |
commit | da411d1625a92e4c100bcda2c29709014e261ec9 (patch) | |
tree | a33cfedc6757551305cf01ee607138dbfd5edf84 /editor/plugins/texture_region_editor_plugin.h | |
parent | cdce912de7adb83fd369d83dc707b9de4cc1c934 (diff) |
Workaround WebM playback bug after AudioServer latency fixes
af9bb0ea15dfd3dfe8950fcfcce364485dadd92a fixed AudioServer's
`get_output_delay()` (which used to always return 0) while renaming it
to `get_output_latency()`. It now returns the latency from the
AudioDriver, which can be non-0.
While this was a clear bugfix, it broke playback for WebM files without
audio track. It seems like the playback code, even though it queried
the output delay to calculate a time compensation, was designed to work
even though the delay value was actually bogus. Now that it's correct,
it's not working.
As a workaround we comment out uses of the output latency, restoring
the behavior of Godot 3.1.
This code should still be reviewed by someone more versed in video
playback and fixed to properly account for the non-0 driver latency.
Fixes #35760.
Diffstat (limited to 'editor/plugins/texture_region_editor_plugin.h')
0 files changed, 0 insertions, 0 deletions