comparison src/audacious/main.c @ 2914:22c940e0d2dc trunk

Fix crash when invoked with a URL. Reported and initial patch by by Marc Butler <marc -at- adaptivecode.com>.
author William Pitcock <nenolod@atheme.org>
date Fri, 29 Jun 2007 01:50:14 -0500
parents 6a474a7954a0
children 1cdfc508d758
comparison
equal deleted inserted replaced
2908:6a474a7954a0 2914:22c940e0d2dc
1230 * but not if we're running headless --nenolod 1230 * but not if we're running headless --nenolod
1231 */ 1231 */
1232 mainwin_setup_menus(); 1232 mainwin_setup_menus();
1233 1233
1234 if (options.headless != 1) 1234 if (options.headless != 1)
1235 GDK_THREADS_LEAVE();
1236
1237 handle_cmd_line_options(&options, FALSE);
1238
1239 if (options.headless != 1)
1240 { 1235 {
1241 GDK_THREADS_ENTER();
1242
1243 read_volume(VOLSET_STARTUP); 1236 read_volume(VOLSET_STARTUP);
1244 mainwin_set_info_text(); 1237 mainwin_set_info_text();
1245 1238
1246 /* FIXME: delayed, because it deals directly with the plugin 1239 /* FIXME: delayed, because it deals directly with the plugin
1247 * interface to set menu items */ 1240 * interface to set menu items */