diff --git a/doc/using-cpp.xml b/doc/using-cpp.xml index 4e6d6d7b..a5fb9d39 100644 --- a/doc/using-cpp.xml +++ b/doc/using-cpp.xml @@ -60,7 +60,7 @@ main( int argc, char **argv ) VImage in = VImage::new_from_file( argv[1], VImage::option()-> - set( "access", VIPS_ACCESS_SEQUENTIAL_UNBUFFERED ) ); + set( "access", VIPS_ACCESS_SEQUENTIAL ) ); double avg = in.avg(); @@ -69,7 +69,7 @@ main( int argc, char **argv ) VImage in = VImage::new_from_file( argv[1], VImage::option()-> - set( "access", VIPS_ACCESS_SEQUENTIAL_UNBUFFERED ) ); + set( "access", VIPS_ACCESS_SEQUENTIAL ) ); VImage out = in.embed( 10, 10, 1000, 1000, VImage::option()-> diff --git a/doc/using-threads.xml b/doc/using-threads.xml index b00c6e79..01fb2f2e 100644 --- a/doc/using-threads.xml +++ b/doc/using-threads.xml @@ -60,7 +60,7 @@ This makes error handling very simple but the obvious downside is that - because error returns and error messages are separate when you + because error returns and error messages are separate, when you detect an error return you can't be sure that what's in the error buffer is the message that matches your error. @@ -161,8 +161,7 @@ test (const char *filename) snprintf (output_file, 256, "x/tmp-%p.jpg", g_thread_self ()); if (!(im = vips_image_new_from_file (filename, - "access", - VIPS_ACCESS_SEQUENTIAL_UNBUFFERED, + "access", VIPS_ACCESS_SEQUENTIAL, NULL))) return (-1);