From f99da5f3e1ee0b585175a43b19cfbc4a49ae0a4e Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Tue, 1 Dec 2020 18:33:40 +0000 Subject: [PATCH] docs clarification https://github.com/libvips/libvips/issues/1912 --- libvips/iofuncs/sourcecustom.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libvips/iofuncs/sourcecustom.c b/libvips/iofuncs/sourcecustom.c index 78e0e2fe..40815ba9 100644 --- a/libvips/iofuncs/sourcecustom.c +++ b/libvips/iofuncs/sourcecustom.c @@ -175,7 +175,7 @@ vips_source_custom_class_init( VipsSourceCustomClass *class ) * * This signal is emitted to read bytes from the source into @buffer. * - * Returns: the number of bytes read. + * Returns: the number of bytes read. Return 0 for EOF. */ vips_source_custom_signals[SIG_READ] = g_signal_new( "read", G_TYPE_FROM_CLASS( class ), @@ -229,7 +229,8 @@ vips_source_custom_new( void ) VIPS_DEBUG_MSG( "vips_source_custom_new:\n" ); - source_custom = VIPS_SOURCE_CUSTOM( g_object_new( VIPS_TYPE_SOURCE_CUSTOM, NULL ) ); + source_custom = VIPS_SOURCE_CUSTOM( + g_object_new( VIPS_TYPE_SOURCE_CUSTOM, NULL ) ); if( vips_object_build( VIPS_OBJECT( source_custom ) ) ) { VIPS_UNREF( source_custom );