hedgewars/avwrapper/avwrapper.c
branch0.9.20
changeset 9903 dae338c8c19c
parent 9901 e33178322a8f
child 9998 736015b847e3
--- a/hedgewars/avwrapper/avwrapper.c	Sat Jan 04 02:18:57 2014 +0100
+++ b/hedgewars/avwrapper/avwrapper.c	Sat Jan 04 02:18:57 2014 +0100
@@ -500,7 +500,7 @@
     {
         do
             ret = WriteFrame(NULL);
-        while (ret);
+        while (ret >= 0);
         if (ret < 0)
             return ret;
     }
@@ -509,7 +509,7 @@
     {
         ret = WriteAudioFrame();
     }
-    while(ret);
+    while(ret >= 0);
     if (ret < 0)
         return ret;