mood.c: Use activate_mood_or_playlist() also to switch to the dummy mode.
authorAndre Noll <maan@systemlinux.org>
Tue, 23 Oct 2007 14:47:46 +0000 (16:47 +0200)
committerAndre Noll <maan@systemlinux.org>
Tue, 23 Oct 2007 14:47:46 +0000 (16:47 +0200)
afs.c

diff --git a/afs.c b/afs.c
index cc6d746..48faeb1 100644 (file)
--- a/afs.c
+++ b/afs.c
@@ -566,7 +566,7 @@ static int com_select_callback(const struct osl_object *query,
                ret = activate_mood_or_playlist(current_mop, &num_admissible);
                if (ret < 0) {
                        para_printf(&pb, "failed, switching to dummy\n");
-                       change_current_mood(NULL); /* always successful */
+                       activate_mood_or_playlist(NULL, &num_admissible);
                }
        }
        para_printf(&pb, "activated %s (%d admissible files)\n", current_mop?