On Mon, Oct 03, 2005 at 10:24:40PM +0200, Christian Häggström wrote:
> In my filewindow I had searched for a string which limited the files
> listed to two entries. When moc had played the current song and was
> about to switch to the next, the user interface crashed. The daemon
> continued to play in the background.
>
> mocp: menu.c:489: menu_item_set_time_plist: Assertion `i != -1' failed.
> Aborted (core dumped)
Thanks, included patch should fix the problem.
--
Damian Pietras
Index: menu.c
===================================================================
--- menu.c (revision 1680)
+++ menu.c (working copy)
@@ -486,9 +486,8 @@
assert (menu != NULL);
i = find_item_plist (menu, plist_num);
- assert (i != -1);
-
- menu_item_set_time (menu, i, time);
+ if (i != -1)
+ menu_item_set_time (menu, i, time);
}
void menu_item_set_format (struct menu *menu, const int num,