comparison src/audacious/main.c @ 2786:c539e972b514 trunk

[svn] - reduce startup time.
author yaz
date Tue, 22 May 2007 16:55:33 -0700
parents 182aa34ae6c4
children b2b920b165ad
comparison
equal deleted inserted replaced
2785:182aa34ae6c4 2786:c539e972b514
906 { 906 {
907 dump_version(); 907 dump_version();
908 exit(EXIT_SUCCESS); 908 exit(EXIT_SUCCESS);
909 } 909 }
910 910
911 #if 1
912 if (filenames != NULL) 911 if (filenames != NULL)
913 { 912 {
914 gint pos = 0; 913 gint pos = 0;
915 gint i = 0; 914 gint i = 0;
916 GList *fns = NULL; 915 GList *fns = NULL;
963 962
964 g_list_foreach(fns, (GFunc) g_free, NULL); 963 g_list_foreach(fns, (GFunc) g_free, NULL);
965 g_list_free(fns); 964 g_list_free(fns);
966 965
967 g_strfreev(filenames); 966 g_strfreev(filenames);
968 } 967 } /* filename */
969 968
970 if (options->rew) 969 if (options->rew)
971 audacious_remote_playlist_prev(session); 970 audacious_remote_playlist_prev(session);
972 971
973 if (options->play) 972 if (options->play)
991 if (options->mainwin) 990 if (options->mainwin)
992 audacious_remote_main_win_toggle(session, TRUE); 991 audacious_remote_main_win_toggle(session, TRUE);
993 992
994 if (options->activate) 993 if (options->activate)
995 audacious_remote_activate(session); 994 audacious_remote_activate(session);
996 #endif
997 995
998 if (options->playcd) 996 if (options->playcd)
999 play_medium(); 997 play_medium();
1000 998
1001 printf("remote = %d\n", remote); 999 printf("remote = %d\n", remote);
1002 { 1000 if(remote) {
1003 gboolean is_running = audacious_remote_is_running(session); 1001 gboolean is_running = audacious_remote_is_running(session);
1004 printf("is_running %d\n", is_running); 1002 printf("is_running %d\n", is_running);
1005 if (is_running) 1003 if (is_running)
1006 exit(EXIT_SUCCESS); 1004 exit(EXIT_SUCCESS);
1007 } 1005 }