Commit 27618d98 authored by Claes Sjofors's avatar Claes Sjofors

Ge video dynamic fix for image reading fault

parent d07fabd8
......@@ -2893,6 +2893,11 @@ int GlowDrawGtk::image_load( char *imagefile,
if ( *orig_im)
gdk_pixbuf_unref( (GdkPixbuf *)*orig_im);
*orig_im = (glow_tImImage *) gdk_pixbuf_new_from_file( imagefile, 0);
if ( !*orig_im) {
if ( im)
*im = 0;
return 0;
}
if ( im)
*im = (glow_tImImage *) gdk_pixbuf_copy( (GdkPixbuf *)*orig_im);
......
......@@ -232,12 +232,13 @@ int GrowImage::update()
if ( date == info.st_ctime)
return 0;
date = info.st_ctime;
ctx->gdraw->image_load( filename, &original_image, &image);
if ( !original_image)
return 0;
date = info.st_ctime;
set_image_color( image, NULL);
ctx->gdraw->image_scale( current_width, current_height,
original_image, &image, &pixmap, &clip_mask);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment