aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/stream.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2022-09-21 16:32:20 +0200
committerThomas White <taw@physics.org>2022-09-21 16:32:20 +0200
commit7c42f8e2b675e017ab1144ca38c9e74c24d68266 (patch)
tree2d8c969184e56a4a1260503a541446d687976f89 /libcrystfel/src/stream.c
parentef7157ef517cf66dfc5b2c2cfc6602e30a31d060 (diff)
create_detgeom: Return detgeom structure rather than altering image argument
Diffstat (limited to 'libcrystfel/src/stream.c')
-rw-r--r--libcrystfel/src/stream.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libcrystfel/src/stream.c b/libcrystfel/src/stream.c
index 960d0a02..3a4f5dae 100644
--- a/libcrystfel/src/stream.c
+++ b/libcrystfel/src/stream.c
@@ -897,7 +897,8 @@ struct image *stream_read_chunk(Stream *st, StreamFlags srf)
if ( have_filename && have_ev ) {
/* Success */
if ( srf & STREAM_DATA_DETGEOM ) {
- if ( create_detgeom(image, st->dtempl_read) ) {
+ image->detgeom = create_detgeom(image, st->dtempl_read);
+ if ( image->detgeom == NULL ) {
image_free(image);
return NULL;
}