Fixed commit 887b9eca023c94c26daf9607c7ac9b18172c634d 0.9.20
authorGianfranco Costamagna <costamagnagianfranco@yahoo.it>
Sat, 04 Jan 2014 02:18:57 +0100
branch0.9.20
changeset 9903 dae338c8c19c
parent 9901 e33178322a8f
child 9905 ec0d9f737449
Fixed commit 887b9eca023c94c26daf9607c7ac9b18172c634d
hedgewars/avwrapper/avwrapper.c
--- 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;