Mercurial > audlegacy
comparison 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 |
comparison
equal
deleted
inserted
replaced
2119:6d7381072a45 | 2120:1d67cf383e32 |
---|---|
1107 exit(EXIT_SUCCESS); | 1107 exit(EXIT_SUCCESS); |
1108 } | 1108 } |
1109 | 1109 |
1110 plugin_system_init(); | 1110 plugin_system_init(); |
1111 | 1111 |
1112 /* Initialize the playlist system. */ | |
1113 playlist_init(); | |
1114 | |
1112 if (options.headless != 1) | 1115 if (options.headless != 1) |
1113 { | 1116 { |
1114 | 1117 |
1115 bmp_set_default_icon(); | 1118 bmp_set_default_icon(); |
1116 | 1119 |
1122 } | 1125 } |
1123 | 1126 |
1124 GDK_THREADS_ENTER(); | 1127 GDK_THREADS_ENTER(); |
1125 } | 1128 } |
1126 | 1129 |
1130 /* Load the default playlist in. */ | |
1127 playlist = playlist_get_active(); | 1131 playlist = playlist_get_active(); |
1128 playlist_load(playlist, bmp_paths[BMP_PATH_PLAYLIST_FILE]); | 1132 playlist_load(playlist, bmp_paths[BMP_PATH_PLAYLIST_FILE]); |
1129 playlist_set_position(playlist, cfg.playlist_position); | 1133 playlist_set_position(playlist, cfg.playlist_position); |
1130 | 1134 |
1131 /* this needs to be called after all 3 windows are created and | 1135 /* this needs to be called after all 3 windows are created and |