mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Oddly, finishing a sample doesn't require a sample
So let's not pass it around Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
854391419f
commit
1d6903c65a
5 changed files with 6 additions and 6 deletions
|
@ -175,7 +175,7 @@ sample_cb(parser_sample_type_t type, parser_sample_value_t value, void *userdata
|
|||
case SAMPLE_TYPE_TIME:
|
||||
sample = prepare_sample(divep);
|
||||
sample->time.seconds = value.time;
|
||||
finish_sample(*divep, sample);
|
||||
finish_sample(*divep);
|
||||
break;
|
||||
case SAMPLE_TYPE_DEPTH:
|
||||
sample->depth.mm = value.depth * 1000 + 0.5;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue