[gs-cvs] rev 7489 - trunk/gs/src

lpd at ghostscript.com lpd at ghostscript.com
Sun Dec 10 17:28:58 PST 2006


Author: lpd
Date: 2006-12-10 17:28:57 -0800 (Sun, 10 Dec 2006)
New Revision: 7489

Modified:
   trunk/gs/src/stream.c
Log:
Fixes bug: closing a filter pipeline with more than one adjacent temporary
stream (such as a compression filter with a predictor whose target was a
procedure) failed to flush all intermediate buffers, causing failures in PS3
CET 23-12*.  NOTE: This code (stream.c:swritebuf) is extremely delicate.
Regression checking is essential!


Modified: trunk/gs/src/stream.c
===================================================================
--- trunk/gs/src/stream.c	2006-12-11 00:56:42 UTC (rev 7488)
+++ trunk/gs/src/stream.c	2006-12-11 01:28:57 UTC (rev 7489)
@@ -907,7 +907,7 @@
 		    break;
 	    }
 	    status = strm->end_status;
-	    if (status < 0)
+	    if (status < 0 && (status != EOFC || !end))
 		break;
 	    if (!curr->is_temp)
 		++depth;



More information about the gs-cvs mailing list