return 1;
}
-static int compute_mood_score(const struct osl_row *row, long *result)
+static int compute_mood_score(const struct osl_row *aft_row, long *result)
{
struct mood_item *item;
int match = 0;
return -E_NO_MOOD;
/* reject audio file if it matches any entry in the deny list */
list_for_each_entry(item, ¤t_mood->deny_list, mood_item_node)
- if (add_item_score(row, item, &score, &score_arg_sum) > 0)
+ if (add_item_score(aft_row, item, &score, &score_arg_sum) > 0)
return -E_NOT_ADMISSIBLE;
list_for_each_entry(item, ¤t_mood->accept_list, mood_item_node)
- if (add_item_score(row, item, &score, &score_arg_sum) > 0)
+ if (add_item_score(aft_row, item, &score, &score_arg_sum) > 0)
match = 1;
/* reject if there is no matching entry in the accept list */
if (!match && !list_empty(¤t_mood->accept_list))
return -E_NOT_ADMISSIBLE;
list_for_each_entry(item, ¤t_mood->score_list, mood_item_node)
- add_item_score(row, item, &score, &score_arg_sum);
+ add_item_score(aft_row, item, &score, &score_arg_sum);
if (score_arg_sum)
score /= score_arg_sum;
*result = score;