popen/pclose changed to _popen/_pclose for Windows
This commit is contained in:
parent
48b794c073
commit
32e959e88a
1 changed files with 5 additions and 1 deletions
|
@ -104,7 +104,7 @@ private:
|
||||||
<< _fps << ":w=" << _width << ":h=" << _height
|
<< _fps << ":w=" << _width << ":h=" << _height
|
||||||
<< ":format=rgb24 -o " << _fileName << " " << _options;
|
<< ":format=rgb24 -o " << _fileName << " " << _options;
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
_file = popen(ss.str().c_str(), "wb");
|
_file = _popen(ss.str().c_str(), "wb");
|
||||||
#else
|
#else
|
||||||
_file = popen(ss.str().c_str(), "w");
|
_file = popen(ss.str().c_str(), "w");
|
||||||
#endif
|
#endif
|
||||||
|
@ -114,7 +114,11 @@ private:
|
||||||
{
|
{
|
||||||
if (!_file)
|
if (!_file)
|
||||||
return;
|
return;
|
||||||
|
#ifdef _WIN32
|
||||||
|
_pclose(_file);
|
||||||
|
#else
|
||||||
pclose(_file);
|
pclose(_file);
|
||||||
|
#endif
|
||||||
_file = 0;
|
_file = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue