diff options
author | Magnus Lundborg <lundborg.magnus@gmail.com> | 2013-12-04 13:46:49 (GMT) |
---|---|---|
committer | Magnus Lundborg <lundborg.magnus@gmail.com> | 2013-12-04 13:46:49 (GMT) |
commit | 0c6b5ba82049ed92c724d44b8451c992e8974124 (patch) | |
tree | bdf24e59dbd52c8af8cab763acbd2ec043f84e8b | |
parent | 3a532c3247ef0feecfc25bd04571395fafc319aa (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 7a7c6db..fb9f238 100644 --- a/src/lib/tng_io.c +++ b/src/lib/tng_io.c @@ -18054,12 +18054,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(p_data->last_retrieved_frame >= 0) { |