aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/stream.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-06-16 14:43:16 +0200
committerThomas White <taw@physics.org>2021-06-16 14:43:16 +0200
commit3fffe0c4cb5efb4c33e819708f0808aa419ea678 (patch)
tree411c14185c26538894a80dfbe28b0398e9a321c2 /libcrystfel/src/stream.c
parent81947acbea8cea233d29d85c6625b5cfe113e468 (diff)
Add DST_NONE for 'no data source' (e.g. image came from stream)
Diffstat (limited to 'libcrystfel/src/stream.c')
-rw-r--r--libcrystfel/src/stream.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcrystfel/src/stream.c b/libcrystfel/src/stream.c
index ba6e13c8..68643a17 100644
--- a/libcrystfel/src/stream.c
+++ b/libcrystfel/src/stream.c
@@ -985,6 +985,8 @@ struct image *stream_read_chunk(Stream *st, StreamFlags srf)
image = image_new();
if ( image == NULL ) return NULL;
+ image->data_source_type = DST_NONE;
+
do {
int ser;
float div, bw;