diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2009-08-16 00:15:22 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2009-08-16 00:15:22 +0200 |
commit | da13027c2b6bdcd52bfe7fa191f22c634aff64f5 (patch) | |
tree | 38cb5cabc8b1f52a39ff517b9f9860b60f632901 /main.c | |
parent | decd9a0a309c9d9081753017f87d1b4ef0271a32 (diff) |
fixed couple of bugs in cmdline handling
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -184,6 +184,9 @@ exec_command_line (const char *cmdline, int len, int filter) { if (queue) { exitcode = 3; } + else { + exitcode = 2; + } } parg += strlen (parg); parg++; @@ -407,10 +410,6 @@ main (int argc, char *argv[]) { } pl_load (defpl); - int res = exec_command_line (cmdline, size, 1); - if (res == -1) { - return -1; - } messagepump_init (); codec_init_locking (); streamer_init (); @@ -434,6 +433,10 @@ main (int argc, char *argv[]) { extern void search_playlist_init (GtkWidget *widget); search_playlist_init (lookup_widget (searchwin, "searchlist")); + int res = exec_command_line (cmdline, size, 0); + if (res == -1) { + return -1; + } if (res == 2) { messagepump_push (M_PLAYSONG, 0, 0, 0); } |