Skip to content

Commit

Permalink
use data and callback directly from cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
kylophone committed Jul 25, 2024
1 parent 588a686 commit 7394c78
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion libvmaf/src/feature/feature_collector.c
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ int vmaf_feature_collector_append(VmafFeatureCollector *feature_collector,
.score = score,
};

metadata_iter->callback(metadata_iter->data, &data);
metadata_iter->metadata_cfg.callback(metadata_iter->metadata_cfg.data, &data);
model_iter = model_iter->next;
}
metadata_iter = metadata_iter->next;
Expand Down
4 changes: 0 additions & 4 deletions libvmaf/src/metadata_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@ int vmaf_metadata_append(VmafCallbackList *metadata, const VmafMetadataConfigura

node->metadata_cfg = metadata_cfg;

//FIXME, remove these
node->data = metadata_cfg.data;
node->callback = metadata_cfg.callback;

if (!metadata->head) {
metadata->head = node;
} else {
Expand Down

0 comments on commit 7394c78

Please sign in to comment.