[x265] [PATCH] disable SIGPIPE on Windows platform
Min Chen
chenm003 at 163.com
Tue Apr 14 07:41:47 CEST 2015
# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1428990100 -28800
# Node ID 4987a630b0d12638c1994afc7c21b9bc44282498
# Parent abfbfdf724a0b224ba5e98c55e81cc9ed295c2f9
disable SIGPIPE on Windows platform
---
source/output/reconplay.cpp | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff -r abfbfdf724a0 -r 4987a630b0d1 source/output/reconplay.cpp
--- a/source/output/reconplay.cpp Mon Apr 13 14:13:19 2015 -0700
+++ b/source/output/reconplay.cpp Tue Apr 14 13:41:40 2015 +0800
@@ -39,17 +39,21 @@
bool ReconPlay::pipeValid;
+#ifndef _MSC_VER
static void sigpipe_handler(int)
{
if (ReconPlay::pipeValid)
general_log(NULL, "exec", X265_LOG_ERROR, "pipe closed\n");
ReconPlay::pipeValid = false;
}
+#endif
ReconPlay::ReconPlay(const char* commandLine, x265_param& param)
{
+#ifndef _MSC_VER
if (signal(SIGPIPE, sigpipe_handler) == SIG_ERR)
general_log(¶m, "exec", X265_LOG_ERROR, "Unable to register SIGPIPE handler: %s\n", strerror(errno));
+#endif
width = param.sourceWidth;
height = param.sourceHeight;
More information about the x265-devel
mailing list