godot/modules/theora
Rémi Verschelde ac63e5d613 Workaround WebM playback bug after AudioServer latency fixes
af9bb0ea15 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.

(cherry picked from commit da411d1625)
2020-02-14 16:02:34 +01:00
..
doc_classes doc: Drop unused 'category' property from header 2020-01-26 16:02:39 +01:00
config.py Unexpose subclasses of ResourceFormatLoader and -Saver 2019-06-18 17:56:23 +02:00
register_types.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
register_types.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
SCsub SCons: Use CPPDEFINES instead of CPPFLAGS for pre-processor defines 2019-07-03 09:59:04 +02:00
video_stream_theora.cpp Workaround WebM playback bug after AudioServer latency fixes 2020-02-14 16:02:34 +01:00
video_stream_theora.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00