diff -r d1cf1ff6cabb -r bf86c6cb9341 hedgewars/uVideoRec.pas --- a/hedgewars/uVideoRec.pas Sun Jan 24 00:02:57 2016 +0100 +++ b/hedgewars/uVideoRec.pas Sun Jan 31 16:07:14 2016 +0300 @@ -109,7 +109,7 @@ filename:= UserPathPrefix + '/VideoTemp/' + RecPrefix; soundFilePath:= UserPathPrefix + '/VideoTemp/' + RecPrefix + '.sw'; - TryDo(AVWrapper_Init(@AddFileLogRaw + if checkFails(AVWrapper_Init(@AddFileLogRaw , PChar(ansistring(filename)) , PChar(ansistring(desc)) , PChar(ansistring(soundFilePath)) @@ -118,7 +118,7 @@ , PChar(ansistring(cAudioCodec)) , cScreenWidth, cScreenHeight, cVideoFramerateNum, cVideoFramerateDen, cVideoQuality) >= 0, 'AVWrapper_Init failed', - true); + true) then exit(false); numPixels:= cScreenWidth*cScreenHeight; YCbCr_Planes[0]:= GetMem(numPixels);