Browse Source

preparser: remove on_art_fetch_ended

Use on_preparse_ended instead (cf. previous commit).
pull/170/head
Thomas Guillem 2 years ago
committed by Steve Lhomme
parent
commit
2aeafe0f83
  1. 1
      include/vlc_preparser.h
  2. 6
      src/preparser/preparser.c

1
include/vlc_preparser.h

@ -70,7 +70,6 @@ enum input_item_preparse_status
struct vlc_metadata_cbs {
void (*on_preparse_ended)(input_item_t *, enum input_item_preparse_status status, void *userdata);
void (*on_art_fetch_ended)(input_item_t *, bool fetched, void *userdata);
void (*on_subtree_added)(input_item_t *, input_item_node_t *subtree, void *userdata);
void (*on_attachments_added)(input_item_t *item,
input_attachment_t *const *array,

6
src/preparser/preparser.c

@ -125,14 +125,10 @@ PreparserRemoveTask(vlc_preparser_t *preparser, struct task *task)
static void
NotifyPreparseEnded(struct task *task, bool art_fetched)
{
(void) art_fetched;
if (task->cbs == NULL)
return;
if (task->options & META_REQUEST_OPTION_FETCH_ANY
&& task->cbs->on_art_fetch_ended)
task->cbs->on_art_fetch_ended(task->item, art_fetched,
task->userdata);
if (task->cbs->on_preparse_ended) {
int status = atomic_load_explicit(&task->preparse_status,
memory_order_relaxed);

Loading…
Cancel
Save