Mercurial > audlegacy
comparison src/audacious/main.c @ 4026:17bf734f8187
avoid crash when audacious is launched with -p option.
author | Yoshiki Yazawa <yaz@cc.rim.or.jp> |
---|---|
date | Wed, 28 Nov 2007 06:01:28 +0900 |
parents | 40db2fe8d073 |
children | c86f63f652aa |
comparison
equal
deleted
inserted
replaced
4020:66529edae49d | 4026:17bf734f8187 |
---|---|
1204 | 1204 |
1205 if (options->activate) | 1205 if (options->activate) |
1206 audacious_remote_activate(session); | 1206 audacious_remote_activate(session); |
1207 | 1207 |
1208 exit(EXIT_SUCCESS); | 1208 exit(EXIT_SUCCESS); |
1209 } | 1209 } /* is_running */ |
1210 else | 1210 else |
1211 #endif | 1211 #endif |
1212 { | 1212 { /* !is_running */ |
1213 if (filenames != NULL) | 1213 if (filenames != NULL) |
1214 { | 1214 { |
1215 gint pos = 0; | 1215 gint pos = 0; |
1216 gint i = 0; | 1216 gint i = 0; |
1217 GList *fns = NULL; | 1217 GList *fns = NULL; |
1295 if (options->mainwin) | 1295 if (options->mainwin) |
1296 drct_main_win_toggle(TRUE); | 1296 drct_main_win_toggle(TRUE); |
1297 | 1297 |
1298 if (options->activate) | 1298 if (options->activate) |
1299 drct_activate(); | 1299 drct_activate(); |
1300 } | 1300 } /* !is_running */ |
1301 } | 1301 } |
1302 | 1302 |
1303 static void | 1303 static void |
1304 bmp_setup_logger(void) | 1304 bmp_setup_logger(void) |
1305 { | 1305 { |