mood: Do not handle events if no mood is active.
authorAndre Noll <maan@systemlinux.org>
Sun, 6 Sep 2009 20:23:45 +0000 (22:23 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 6 Sep 2009 20:23:45 +0000 (22:23 +0200)
commit37f4717467d2235dba5fe403737eba66efb1dde4
tree8e34f0255af72e537baead769c43a74441235e27
parent06497812fbb743863b865762338a26cdcfa10ea6
mood: Do not handle events if no mood is active.

In case a file is being removed with "para_client rm" while in playlist mode,
the following assertion triggers:

mood.c:521: del_afs_statistics: Assertion `n' failed.

This happens because the file is contained in the score table but statistics are not enabled.
Fix it by ignoring events if cuurent_mood is NULL.
mood.c