aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRémi Verschelde2017-09-12 11:57:49 +0200
committerGitHub2017-09-12 11:57:49 +0200
commitcf941fdc357791a93bd9ab9eaf16898e0c218ff3 (patch)
tree546d046bffd826359c85240ae4562ef5df734e86 /modules
parent84ccda4e1d6f9a63b689167887f7d329cdc5dffa (diff)
parent8230bf0a2f39f0849b670d26067207c45edcca1a (diff)
downloadgodot-cf941fdc357791a93bd9ab9eaf16898e0c218ff3.tar.gz
godot-cf941fdc357791a93bd9ab9eaf16898e0c218ff3.tar.zst
godot-cf941fdc357791a93bd9ab9eaf16898e0c218ff3.zip
Merge pull request #11026 from hpvb/fix-assign-in-if
Remove assignment and declarations in if statements
Diffstat (limited to 'modules')
-rw-r--r--modules/theora/video_stream_theora.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/theora/video_stream_theora.cpp b/modules/theora/video_stream_theora.cpp
index 2a24f8d4d..02b994f8d 100644
--- a/modules/theora/video_stream_theora.cpp
+++ b/modules/theora/video_stream_theora.cpp
@@ -414,7 +414,8 @@ void VideoStreamPlaybackTheora::update(float p_delta) {
bool buffer_full = false;
/* if there's pending, decoded audio, grab it */
- if ((ret = vorbis_synthesis_pcmout(&vd, &pcm)) > 0) {
+ ret = vorbis_synthesis_pcmout(&vd, &pcm);
+ if (ret > 0) {
const int AUXBUF_LEN = 4096;
int to_read = ret;