diff audacious/main.c @ 2120:1d67cf383e32 trunk

[svn] - dynamically allocate the playlist at startup and fix some lingering improper uses of playlist_get()
author nenolod
date Fri, 15 Dec 2006 07:20:41 -0800
parents d1e4f54fb9f5
children 63af5b9c5026
line wrap: on
line diff
--- a/audacious/main.c	Wed Dec 13 23:15:44 2006 -0800
+++ b/audacious/main.c	Fri Dec 15 07:20:41 2006 -0800
@@ -1109,6 +1109,9 @@
 
     plugin_system_init();
 
+    /* Initialize the playlist system. */
+    playlist_init();
+
     if (options.headless != 1)
     {
 
@@ -1124,6 +1127,7 @@
         GDK_THREADS_ENTER();
     }
 
+    /* Load the default playlist in. */
     playlist = playlist_get_active();
     playlist_load(playlist, bmp_paths[BMP_PATH_PLAYLIST_FILE]);
     playlist_set_position(playlist, cfg.playlist_position);