Skip to content

Commit

Permalink
警告対策。
Browse files Browse the repository at this point in the history
  • Loading branch information
rigaya committed Feb 23, 2024
1 parent 9294d2c commit 90164bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions mppcore/rgy_pipe_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,19 +211,21 @@ size_t RGYPipeProcessLinux::stdOutFpRead(void *data, const size_t dataSize) {
}

int RGYPipeProcessLinux::stdOutFpClose() {
fclose(m_pipe.stdOut.fp);
const int ret = fclose(m_pipe.stdOut.fp);
m_pipe.stdOut.fp = nullptr;
m_pipe.stdOut.h_read = 0;
return ret;
}

size_t RGYPipeProcessLinux::stdErrFpRead(void *data, const size_t dataSize) {
return fread(data, 1, dataSize, m_pipe.stdErr.fp);
}

int RGYPipeProcessLinux::stdErrFpClose() {
fclose(m_pipe.stdErr.fp);
const int ret = fclose(m_pipe.stdErr.fp);
m_pipe.stdErr.fp = nullptr;
m_pipe.stdErr.h_read = 0;
return ret;
}

tstring RGYPipeProcessLinux::getOutput() {
Expand Down
4 changes: 2 additions & 2 deletions mppcore/rgy_prm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1722,8 +1722,8 @@ RGYParamControl::RGYParamControl() :
skipHWDecodeCheck(false),
avsdll(),
enableOpenCL(true),
outputBufSizeMB(RGY_OUTPUT_BUF_MB_DEFAULT),
avoidIdleClock() {
avoidIdleClock(),
outputBufSizeMB(RGY_OUTPUT_BUF_MB_DEFAULT) {

}
RGYParamControl::~RGYParamControl() {};
Expand Down

0 comments on commit 90164bb

Please sign in to comment.