# HG changeset patch
# User Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
# Date 1388798337 -3600
# Node ID dae338c8c19ce83959ccf8d95b97376ab521234f
# Parent  e33178322a8f0454e786ca1b2efcc7398217069d
Fixed commit 887b9eca023c94c26daf9607c7ac9b18172c634d

diff -r e33178322a8f -r dae338c8c19c 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;