diff options
author | waker <wakeroid@gmail.com> | 2009-08-28 20:30:20 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2009-08-28 20:30:20 +0200 |
commit | f263abb8b777b61bcce7eee88716a137d0f880c3 (patch) | |
tree | 4e1b2c27affb8e9f3c27726b04b0fe9909cc919a /main.c | |
parent | 81d1b50a3bd28099b784e5b2a14295e715a48d01 (diff) |
lastfm multithreading WIP
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -20,6 +20,7 @@ #include <stdint.h> #include <string.h> #include <stdlib.h> +#include <time.h> #include <sys/stat.h> #include <sys/types.h> #include <sys/types.h> @@ -494,6 +495,7 @@ on_trayicon_popup_menu (GtkWidget *widget, int main (int argc, char *argv[]) { + srand (time (NULL)); prctl (PR_SET_NAME, "deadbeef-main", 0, 0, 0, 0); char *homedir = getenv ("HOME"); if (!homedir) { @@ -653,7 +655,7 @@ main (int argc, char *argv[]) { p_free (); streamer_free (); codec_free_locking (); - + plug_unload_all (); session_save (sessfile); pl_save (defpl); pl_free (); |