paste in various fixes from Kleis
This commit is contained in:
parent
552043c2c8
commit
ed6b26fcb1
@ -1036,7 +1036,7 @@ build_scan_properties( VipsImage *image )
|
||||
char *date;
|
||||
int i;
|
||||
|
||||
#ifdef HAVE_DATE_TIME_FORMAT_ISO860
|
||||
#ifdef HAVE_DATE_TIME_FORMAT_ISO8601
|
||||
{
|
||||
GDateTime *now;
|
||||
|
||||
@ -1044,14 +1044,14 @@ build_scan_properties( VipsImage *image )
|
||||
date = g_date_time_format_iso8601( now );
|
||||
g_date_time_unref( now );
|
||||
}
|
||||
#else /*!HAVE_DATE_TIME_FORMAT_ISO860*/
|
||||
#else /*!HAVE_DATE_TIME_FORMAT_ISO8601*/
|
||||
{
|
||||
GTimeVal now;
|
||||
|
||||
g_get_current_time( &now );
|
||||
date = g_time_val_to_iso8601( &now );
|
||||
}
|
||||
#endif /*HAVE_DATE_TIME_FORMAT_ISO860*/
|
||||
#endif /*HAVE_DATE_TIME_FORMAT_ISO8601*/
|
||||
|
||||
vips_dbuf_init( &dbuf );
|
||||
|
||||
|
@ -446,7 +446,7 @@ read_header( Read *read, VipsImage *out )
|
||||
|
||||
do {
|
||||
g_assert( iter.frame_num >= 1 &&
|
||||
iter.frame_num < read->frame_count );
|
||||
iter.frame_num <= read->frame_count );
|
||||
|
||||
read->delays[iter.frame_num - 1] =
|
||||
iter.duration;
|
||||
|
@ -556,7 +556,7 @@ vips_streami_unminimise( VipsStreami *streami )
|
||||
stream->descriptor = fd;
|
||||
|
||||
VIPS_DEBUG_MSG( "vips_streami_unminimise: "
|
||||
"restoring read position %zd\n",
|
||||
"restoring read position %" G_GINT64_FORMAT "\n",
|
||||
streami->read_position );
|
||||
if( vips__seek( stream->descriptor,
|
||||
streami->read_position, SEEK_SET ) == -1 )
|
||||
|
@ -1078,7 +1078,7 @@ vips__ftruncate( int fd, gint64 pos )
|
||||
LARGE_INTEGER p;
|
||||
|
||||
p.QuadPart = pos;
|
||||
if( vips__seek( fd, pos ) )
|
||||
if( vips__seek( fd, pos, SEEK_SET ) )
|
||||
return( -1 );
|
||||
if( !SetEndOfFile( hFile ) ) {
|
||||
vips_error_system( GetLastError(), "vips__ftruncate",
|
||||
|
Loading…
x
Reference in New Issue
Block a user