diff options
author | Alexey Yakovenko <waker@users.sourceforge.net> | 2014-02-24 22:39:57 +0100 |
---|---|---|
committer | Alexey Yakovenko <waker@users.sourceforge.net> | 2014-02-24 22:39:57 +0100 |
commit | 7b5a9dda568ad518fd7caf76e870906f9a69a36c (patch) | |
tree | 6644644b791083e8f513d40a099449dcb1f4f8b7 /playlist.c | |
parent | 4001336593622832ceffd1cdef7cd146fc004cd6 (diff) |
remove playlist count limitation (bug #1059)
Diffstat (limited to 'playlist.c')
-rw-r--r-- | playlist.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -263,7 +263,7 @@ plt_gen_conf (void) { playlist_t *p = playlists_head; for (i = 0; i < cnt; i++, p = p->next) { char s[100]; - snprintf (s, sizeof (s), "playlist.tab.%02d", i); + snprintf (s, sizeof (s), "playlist.tab.%05d", i); conf_set_str (s, p->title); snprintf (s, sizeof (s), "playlist.cursor.%d", i); conf_set_int (s, p->current_row[PL_MAIN]); @@ -377,10 +377,6 @@ int plt_add (int before, const char *title) { assert (before >= 0); trace ("plt_add\n"); - if (plt_get_count () >= 100) { - fprintf (stderr, "can't create more than 100 playlists. sorry.\n"); - return -1; - } playlist_t *plt = plt_alloc (title); plt_modified (plt); |