diff options
author | Magnus Lundborg <lundborg.magnus@gmail.com> | 2013-12-04 14:25:37 (GMT) |
---|---|---|
committer | Magnus Lundborg <lundborg.magnus@gmail.com> | 2013-12-04 14:25:37 (GMT) |
commit | f86e1f7762e5fc3326015d04281cfca483467936 (patch) | |
tree | 54bc2ccc726157daa048e822245737431e56331d | |
parent | 963508543779e1b604351568e028023493e76877 (diff) |
Improved handling of non-existing blocks.
-rw-r--r-- | src/lib/tng_io.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/tng_io.c b/src/lib/tng_io.c index ec6298a..df10c14 100644 --- a/src/lib/tng_io.c +++ b/src/lib/tng_io.c @@ -18149,12 +18149,16 @@ tng_function_status DECLSPECDLLEXPORT tng_util_trajectory_next_frame_present_dat { stat = tng_frame_set_read_current_only_data_from_block_id(tng_data, TNG_USE_HASH, block_id); - if(stat != TNG_SUCCESS) + if(stat == TNG_CRITICAL) { printf("Cannot read data block of frame set. %s: %d\n", __FILE__, __LINE__); return(stat); } + if(stat == TNG_FAILURE) + { + continue; + } } if(np_data->last_retrieved_frame >= 0) { |