summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomas Farago <sensej007@email.cz>2020-03-31 16:28:42 +0200
committerTomas Farago <sensej007@email.cz>2020-03-31 16:28:42 +0200
commit3c50547230b9c76ca2a6314f8de06907665a20d8 (patch)
tree8e5647735f0637e87b8945207afc5c2cf1f675fc
parentb74bd263983a3dc1006ceceaf9552dc322ef8858 (diff)
downloadufo-filters-3c50547230b9c76ca2a6314f8de06907665a20d8.tar.gz
ufo-filters-3c50547230b9c76ca2a6314f8de06907665a20d8.tar.bz2
ufo-filters-3c50547230b9c76ca2a6314f8de06907665a20d8.tar.xz
ufo-filters-3c50547230b9c76ca2a6314f8de06907665a20d8.zip
GBP: complain if not enough projections come
-rw-r--r--src/ufo-general-backproject-task.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ufo-general-backproject-task.c b/src/ufo-general-backproject-task.c
index 5ff1c35..e63d841 100644
--- a/src/ufo-general-backproject-task.c
+++ b/src/ufo-general-backproject-task.c
@@ -1694,7 +1694,13 @@ ufo_general_backproject_task_generate (UfoTask *task,
bpp = get_type_size (priv->store_type);
g_object_get (task, "num_processed", &count, NULL);
- if (count != priv->num_projections || priv->generated >= priv->num_slices) {
+ if (count != priv->num_projections) {
+ /* Don't send volume if not enough projections came */
+ g_warning ("general-backproject received only %u projections out of %u "
+ "specified, no outuput will be generated", count, priv->num_projections);
+ return FALSE;
+ }
+ if (priv->generated >= priv->num_slices) {
/* Don't send volume if not enough projections came */
return FALSE;
}