On Thu, Jan 5, 2017 at 2:08 AM, Vincent <debian-si...@free-astro.vinvin.tf> wrote: > Thank you both for your answers. I finally made a sample application > that reads a FITS file and tries to display the first channel's grey > buffer in a gegl-gtk object. > > The code is here: > https://free-astro.org/svn/siril/trunk/src/main_gegl_test.c > you may also checkout trunk/deps/gegl-gtk. Compilation > instructions are given at the top of the file, dependencies are GTK3, > GEGL, gegl-gtk and cfitsio. > A sample file is available here: > https://free-astro.org/download/scott.fit
Changing this line: gegl_buffer_set(buf, &rect, 0, format, &fit.pdata[0], GEGL_AUTO_ROWSTRIDE); to be: gegl_buffer_set(buf, &rect, 0, format, fit.pdata[0], GEGL_AUTO_ROWSTRIDE); results in a window displaying an image rather than a seg fault for me. Happy hacking :) _______________________________________________ gegl-developer-list mailing list List address: gegl-developer-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gegl-developer-list