From 90164bb64b68eab156f65f5c6e4bfb37733ed146 Mon Sep 17 00:00:00 2001 From: rigaya Date: Sat, 24 Feb 2024 08:33:08 +0900 Subject: [PATCH] =?UTF-8?q?=E8=AD=A6=E5=91=8A=E5=AF=BE=E7=AD=96=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mppcore/rgy_pipe_linux.cpp | 6 ++++-- mppcore/rgy_prm.cpp | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/mppcore/rgy_pipe_linux.cpp b/mppcore/rgy_pipe_linux.cpp index bb14768..fac0517 100644 --- a/mppcore/rgy_pipe_linux.cpp +++ b/mppcore/rgy_pipe_linux.cpp @@ -211,9 +211,10 @@ 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) { @@ -221,9 +222,10 @@ size_t RGYPipeProcessLinux::stdErrFpRead(void *data, const size_t dataSize) { } 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() { diff --git a/mppcore/rgy_prm.cpp b/mppcore/rgy_prm.cpp index 966f646..5b3cf92 100644 --- a/mppcore/rgy_prm.cpp +++ b/mppcore/rgy_prm.cpp @@ -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() {};