]> git.mxchange.org Git - flightgear.git/blobdiff - utils/fgviewer/MEncoderCaptureOperation.hxx
commradio: improvements for atis speech
[flightgear.git] / utils / fgviewer / MEncoderCaptureOperation.hxx
index 051996584f404f961c972a6eb481f227a2c4a69e..c676978366cee4e0277451d5f7916a32c5a5c997 100644 (file)
@@ -104,7 +104,7 @@ private:
            << _fps << ":w=" << _width << ":h=" << _height
            << ":format=rgb24 -o " << _fileName << " " << _options;
 #ifdef _WIN32
-        _file = popen(ss.str().c_str(), "wb");
+        _file = _popen(ss.str().c_str(), "wb");
 #else
         _file = popen(ss.str().c_str(), "w");
 #endif
@@ -114,7 +114,11 @@ private:
     {
         if (!_file)
             return;
+#ifdef _WIN32
+        _pclose(_file);
+#else
         pclose(_file);
+#endif
         _file = 0;
     }