Merge pull request #10 from LocutusOfBorg/fix-avwrapper2
authorVittorio Giovara <vittorio.giovara@gmail.com>
Fri, 03 Jan 2014 07:50:42 -0800
changeset 9931 409d991a59e8
parent 9927 22bb4dfbfea8 (current diff)
parent 9929 01609dac9d79 (diff)
child 9933 792ce11d1927
Merge pull request #10 from LocutusOfBorg/fix-avwrapper2 Fixed commit 887b9eca023c94c26daf9607c7ac9b18172c634d
--- a/hedgewars/avwrapper/avwrapper.c	Fri Jan 03 07:19:04 2014 -0800
+++ b/hedgewars/avwrapper/avwrapper.c	Fri Jan 03 07:50:42 2014 -0800
@@ -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;