<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><div>need modify _MSC_VER to _WIN32 for Mingw compatible</div>
<div></div>
<div id="divNeteaseMailCard"></div>
<div><br></div>ÔÚ 2015-04-14 15:18:54£¬"Deepthi Nandakumar" <deepthi@multicorewareinc.com> дµÀ£º<br>
<blockquote id="isReplyContent" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div dir="ltr">Thanks, pushed.<br></div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Apr 14, 2015 at 11:22 AM, Xinyue Lu <span dir="ltr"><<a href="mailto:maillist@7086.in" target="_blank">maillist@7086.in</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><span class="">ÔÚ 2015/4/13 22:41, Min Chen дµÀ:<br>> # HG changeset patch<br>> # User Min Chen <<a href="mailto:chenm003@163.com">chenm003@163.com</a>><br>> # Date 1428990100 -28800<br>> # Node ID 4987a630b0d12638c1994afc7c21b9bc44282498<br>> # Parent abfbfdf724a0b224ba5e98c55e81cc9ed295c2f9<br>> disable SIGPIPE on Windows platform<br>> ---<br>> source/output/reconplay.cpp | 4 ++++<br>> 1 files changed, 4 insertions(+), 0 deletions(-)<br>><br>> diff -r abfbfdf724a0 -r 4987a630b0d1 source/output/reconplay.cpp<br>> --- a/source/output/reconplay.cpp Mon Apr 13 14:13:19 2015 -0700<br>> +++ b/source/output/reconplay.cpp Tue Apr 14 13:41:40 2015 +0800<br>> @@ -39,17 +39,21 @@<br>><br>> bool ReconPlay::pipeValid;<br>><br>> +#ifndef _MSC_VER<br><br></span>It still fails on mingw. Changing condition to check _WIN32 seems to work.<br>
<div class="HOEnZb">
<div class="h5"><br>> static void sigpipe_handler(int)<br>> {<br>> if (ReconPlay::pipeValid)<br>> general_log(NULL, "exec", X265_LOG_ERROR, "pipe closed\n");<br>> ReconPlay::pipeValid = false;<br>> }<br>> +#endif<br>><br>> ReconPlay::ReconPlay(const char* commandLine, x265_param& param)<br>> {<br>> +#ifndef _MSC_VER<br>> if (signal(SIGPIPE, sigpipe_handler) == SIG_ERR)<br>> general_log(¶m, "exec", X265_LOG_ERROR, "Unable to register SIGPIPE handler: %s\n", strerror(errno));<br>> +#endif<br>><br>> width = param.sourceWidth;<br>> height = param.sourceHeight;<br>><br>> _______________________________________________<br>> x265-devel mailing list<br>> <a href="mailto:x265-devel@videolan.org">x265-devel@videolan.org</a><br>> <a href="https://mailman.videolan.org/listinfo/x265-devel" target="_blank">https://mailman.videolan.org/listinfo/x265-devel</a><br>><br>_______________________________________________<br>x265-devel mailing list<br><a href="mailto:x265-devel@videolan.org">x265-devel@videolan.org</a><br><a href="https://mailman.videolan.org/listinfo/x265-devel" target="_blank">https://mailman.videolan.org/listinfo/x265-devel</a><br></div></div></blockquote></div><br></div></blockquote></div>