diff options
| author | Błażej Szczygieł | 2016-06-15 15:31:32 +0200 |
|---|---|---|
| committer | Rémi Verschelde | 2016-06-18 00:49:55 +0200 |
| commit | aebad5de5f629826ae4e63df7c48cab204999b4f (patch) | |
| tree | 000786761cf8bfd347a319c5b8219706fcc77e9c /drivers | |
| parent | 65bcde0a7d837bcfc98d37734806caa1f894a36d (diff) | |
| download | godot-aebad5de5f629826ae4e63df7c48cab204999b4f.tar.gz godot-aebad5de5f629826ae4e63df7c48cab204999b4f.tar.zst godot-aebad5de5f629826ae4e63df7c48cab204999b4f.zip | |
Fix Theora video playback without a Vorbis stream
- prevent audio resampler errors when number of channels is 0,
- don't check for 'audio_done' when there is no audio data.
(cherry picked from commit 763b29f34e8c99c2f9559dcc31b59f99d0d6dee3)
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/theora/video_stream_theora.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/theora/video_stream_theora.cpp b/drivers/theora/video_stream_theora.cpp index e577c3f93..fc296e2d2 100644 --- a/drivers/theora/video_stream_theora.cpp +++ b/drivers/theora/video_stream_theora.cpp @@ -513,7 +513,7 @@ void VideoStreamPlaybackTheora::update(float p_delta) { } bool frame_done=false; - bool audio_done=false; + bool audio_done=!vorbis_p; bool theora_done=false; |
