PARA_ERROR(NO_AUDIO_FILE, "no audio file"), \
PARA_ERROR(NOFD, "did not receive open fd from afs"), \
PARA_ERROR(NO_MATCH, "no matches"), \
- PARA_ERROR(NO_MOOD, "no mood available"), \
PARA_ERROR(NO_MORE_SLOTS, "no more empty slots"), \
PARA_ERROR(NOT_PLAYING, "not playing"), \
PARA_ERROR(NO_VALID_FILES, "no valid file found in playlist"), \
/* returns 1 if row admissible, 0 if not, negative on errors */
static int row_is_admissible(const struct osl_row *aft_row, struct mood *m)
{
- if (!m)
- return -E_NO_MOOD;
+ assert(m);
return mp_eval_row(aft_row, m->parser_context);
}