FreeBSD Bugzilla – Attachment 55362 Details for
Bug 83689
[PATCH] mjpegtools: 1) libpng problem and 2) FreeBSD 4 mplex problem
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.09 KB, created by
Sven Berkvens-Matthijsse
on 2005-07-18 21:10:07 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Sven Berkvens-Matthijsse
Created:
2005-07-18 21:10:07 UTC
Size:
1.09 KB
patch
obsolete
>--- mplex/main.cpp.orig Thu Dec 9 21:13:26 2004 >+++ mplex/main.cpp Mon Jul 18 21:11:07 2005 >@@ -38,6 +38,7 @@ > #endif > #include <ctype.h> > #include <math.h> >+#include <fcntl.h> > #include "cpu_accel.h" > #include "mjpeg_types.h" > #include "mjpeg_logging.h" >@@ -107,6 +108,13 @@ > mjpeg_error_exit1( "Could not open for writing: %s", cur_filename ); > } > >+ { >+ int flags; >+ >+ (void)fcntl(fileno(strm), F_GETFL, &flags); >+ (void)fcntl(fileno(strm), F_SETFL, flags & ~O_NONBLOCK); >+ } >+ > return 0; > } > >@@ -144,6 +152,12 @@ > { > mjpeg_error_exit1( "Could not open for writing: %s", cur_filename ); > } >+ { >+ int flags; >+ >+ (void)fcntl(fileno(strm), F_GETFL, &flags); >+ (void)fcntl(fileno(strm), F_SETFL, flags & ~O_NONBLOCK); >+ } > } > > void >@@ -200,6 +214,14 @@ > { > mjpeg_error_exit1( "Unable to open file %s for reading.", bs_filename); > } >+ >+ { >+ int flags; >+ >+ (void)fcntl(fileno(fileh), F_GETFL, &flags); >+ (void)fcntl(fileno(fileh), F_SETFL, flags & ~O_NONBLOCK); >+ } >+ > filename = strcpy( new char[strlen(bs_filename)+1], bs_filename ); > streamname = filename; > >-----8<------8<------8<-----
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 83689
:
55360
|
55361
| 55362